Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top