admin 管理员组文章数量: 1086019
Azure DevOps Repos, situation is really simple, we have
- Branch Master ---+---+ Head
- Branch Develop ---+---+ Head + ... + changes
After some commit on Develop, we create pull request from Develop > To Master and it completing without conflicts and all change are merged into Master. All is ok.
But now, on Azure DevOps Develop seems is 1 commit behind respect to Master, but from git command line all is up-to-date.
- Branch Master ---+---+...+...
- Branch Develop ---+---+...
- 1 behind respect to Master
Why?
Azure DevOps Repos, situation is really simple, we have
- Branch Master ---+---+ Head
- Branch Develop ---+---+ Head + ... + changes
After some commit on Develop, we create pull request from Develop > To Master and it completing without conflicts and all change are merged into Master. All is ok.
But now, on Azure DevOps Develop seems is 1 commit behind respect to Master, but from git command line all is up-to-date.
- Branch Master ---+---+...+...
- Branch Develop ---+---+...
- 1 behind respect to Master
Why?
Share Improve this question edited Apr 2 at 11:31 Donald Duck is with Ukraine 8,91223 gold badges79 silver badges102 bronze badges asked Mar 28 at 8:19 Domenico MonacoDomenico Monaco 1,23712 silver badges22 bronze badges1 Answer
Reset to default 1The merge will add a special kind of commit which combines the 2 branches together; The head of your master and develop branch. It allows you to merge branches even when both branches have 'new' commits (which are not part of the history of the other branch).
There's also a fast-forward merge (think it's called rebase in azure devops) that does what you're expecting where it simply pastes the new commits onto the master in a linear fashion without the additional commit. But it requires the your develop branch to be up to date with the master.
It's a preference, but having the merge commit gives you some extra insights when it was merged and all related information provided by the platform. E.g. for azure devops it'll link work items and the pull request to it in their UI.
本文标签: repositoryWhy on Azure DevOps after pull request on repo one appear 1 behindStack Overflow
版权声明:本文标题:repository - Why on Azure DevOps after pull request on repo one appear 1 behind - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744048912a2524649.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论