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

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.

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,199评论 0 10
  • 因为原文太长超出字数,Lesson 3 就放在另一篇文章里 How to Use Git and GitHub 标...
    赤乐君阅读 10,736评论 1 5
  • 据有关人员(那个人就是我)的取样调查,在一个具体范围人群中(具体是11名小朋友,周围亲戚家5人,熟悉的邻居家分别6...
    巴图鲁阅读 3,698评论 3 6
  • 我的24岁迷茫而又不知所措。我感觉自己什么东西都不会,也有很多方面能力也不是很好,有时候感觉自己挺无能与自卑的,我...
    景艺轩主阅读 1,207评论 0 0
  • 7月下半年,加油! 🦋没有反思的人生不值得过 -苏格拉底 🦋本周的关键词:《 暑假、无头绪》 🦋【成果&温馨时刻】...
    暖慧阅读 1,454评论 0 1

友情链接更多精彩内容