Why the conflict markers don't disappear with a git mergetool using Beyond compare 3?

杀马特。学长 韩版系。学妹 提交于 2021-02-08 04:42:13

问题


I changed the merge tool to Beyond Compare.
I merge a file a.txt in 'test' branch with file a.txt in master branch.
I want to update my a.txt in master branch with changes in a.txt in 'test' branch.

When I input '$git mergetool', it shows the merge tool with the left is LOCAL and the right is REMOTE. When I merge changes in REMOTE to LOCAL, then I save and close BC3, I choose 'y' with the question 'Was the merge sucessful?'.

Everything seems well.
However, when I check the a.txt in the master, it appears the conflict markers with <<<<HEAD. What's wrong with the merge?
I think I merged and saved it before, but why the conflict markers not disappear?


回答1:


You aren't supposed to modified LOCAL, but only the file shown in the lower part of the Beyond compare diff GUI:

http://donatstudios.com/assets/42/winebottler_beyond_compare_3way_merge.png

If you don't, the mergetool consider you didn't made any modification to the file, which will keep its conflict markers.



来源:https://stackoverflow.com/questions/19445454/why-the-conflict-markers-dont-disappear-with-a-git-mergetool-using-beyond-compa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!