Evil merges in git - where do they come from?

后端 未结 3 1902
隐瞒了意图╮
隐瞒了意图╮ 2021-01-06 03:34

I\'ve read this question and the answers, but what isn\'t clear to me is WHO creates the \"changes that do not appear in any parent\".

Is it the git merge algorithm

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-06 04:16

    It happens when a developer has a merge conflict that he must manually fix, and in doing so, he changes code that is not related to the merge conflict itself. Git's merging algorithms will not insert unrelated, "evil" code changes by itself.

提交回复
热议问题