简体   繁体   English

Azure 使用 Git 的 Devops 仅建议对最新提交的拉取请求

[英]Azure Devops with Git only suggest Pull Request for latest commit

we have recently switched to Git inn Azure Devops (from TFVC) and I am struggling with Pull Requests:我们最近切换到 Git inn Azure Devops(来自 TFVC),我正在努力处理拉取请求:

1) I created one branch from Master and committed some changes on that branch. 1) 我从 Master 创建了一个分支,并在该分支上提交了一些更改。 I did not do a Pull Request at this time.我当时没有做拉取请求。

2) Then I created a second branch from Master (without the first branch's changes.). 2)然后我从 Master 创建了第二个分支(没有第一个分支的更改。)。 I committed changes on that second branch.我在第二个分支上提交了更改。

Now I wanted to create a Pull Request for the first commit.现在我想为第一次提交创建一个拉取请求。 But in Azure Devops, I only get suggestion to create a Pull Request for the latest commit, I can't find anyway to create a Pull Request for the first commit.但是在 Azure Devops 中,我只收到为最新提交创建拉取请求的建议,无论如何我都找不到为第一次提交创建拉取请求。 unless I first do the second (which I did not want to do in this case).除非我先做第二个(在这种情况下我不想这样做)。

Is my way of working not supported by Azure Devops with Git? Azure Devops 与 Git 不支持我的工作方式吗? (I assume this can be done with command line Git, but I would like to avoid that when I'm already working in Visual Studio and Azure Devops.) (我假设这可以通过命令行 Git 来完成,但是当我已经在 Visual Studio 和 Azure Devops 中工作时,我想避免这种情况。)

Thanks for any help!谢谢你的帮助!

I'm trying to figure out what was the real question but you can always create a new pull request from the menu on the left "Repo → Pull Requests → New Pull Requests" and there you can select the source and destination branch.我试图弄清楚真正的问题是什么,但您始终可以从左侧菜单“Repo → Pull Requests → New Pull Requests”创建新的拉取请求,然后您可以在 select 中创建源和目标分支。

If I slightly caught the underneath problem: You can't make a pull request for a single commit in a source branch that have more than one.如果我稍微发现了下面的问题:您不能对具有多个的源分支中的单个提交发出拉取请求。 Pull request operate at branch level, and if you open a pull request you can always add new commit until the PR is closed (merged or abandoned).拉取请求在分支级别运行,如果您打开拉取请求,您可以随时添加新提交,直到 PR 关闭(合并或放弃)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM