View a three-way merge including the common ancestor

suggest change
git 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents