Why does git produce a merge conflict when lines next to each other are changed?

前端 未结 3 830
盖世英雄少女心
盖世英雄少女心 2020-12-03 17:48

Let\'s say I have a file with this content in master:

Line 1
Line 2
Line 3
Line 4

Now say I create and checkout a new branch c

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 18:11

    You can specify a custom merge driver that will not conflict in this case in a .gitattributes file that's in the repo.

提交回复
热议问题