美文网首页
Devops规划随笔-代码分支模型优化 03

Devops规划随笔-代码分支模型优化 03

作者: antony已经被占用 | 来源:发表于2018-12-08 19:56 被阅读0次

stackoverflow 上有个帖子比较清楚的介绍了git merge的作用

If a file is only modified on one of the two branches involved in the merge, than it will not be mentioned. No merge, automatic or manual, is needed for this file.

If the file has been modified on both branches, then first an auto-merge will be attempted. This usually succeeds in the following two cases:
--The changes are to completely separate lines, with unchanged lines in between a line changed on one branch and a line changed on the other branch.
--The changes give exactly the same end result, for example the same commit appears on both branches.

If these aren't the case, then the automatic merge will fail, and Git will resort to asking for a manual merge.

相关文章

网友评论

      本文标题:Devops规划随笔-代码分支模型优化 03

      本文链接:https://www.haomeiwen.com/subject/lucchqtx.html