Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 git 新手。最近,我将一些代码从feature分支master合并。合并我的 .gitignore 文件后看起来像这样
feature
master
<<<<<<< HEAD gen/ bin/ ======= gen/ >>>>>>> master
现在我的问题是
<<<<<<< HEAD
>>>>>>> master
它显示了您的 currentHEAD中的内容以及master分支中的内容。
HEAD
如果您想选择 HEAD 中的内容,您应该只离开
gen/ bin/
在那个文件中。如果你决定选择里面的东西,master你应该只
gen/
在那个文件中。
您可能还需要在此处写其他任何内容。合并后,这个文件看起来就像你现在提交的一样。
我相信你不会删除特殊行作为
=======