View a three-way merge including the common ancestor
suggest changegit config --global merge.conflictstyle diff3
Sets the diff3 style as default: instead of the usual format in conflicted sections, showing the two files:
<<<<<<< HEAD
left
=======
right
>>>>>>> master
the conflict also includes the original text from the common ancestor:
<<<<<<< HEAD
first
second
|||||||
first
=======
last
>>>>>>> master
That makes the conflict easier to read. Here the local side added second, and the other side changed first to last, so one resolution is:
last
second
The same resolution would have been much harder using the default:
<<<<<<< HEAD
first
second
=======
last
>>>>>>> master
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents