What is `merge.conflictStyle=zdiff3` and why use it?
IntermediateConceptConflicts, remotes, fetch, pull and push
Answer
By default markers show only your side and theirs. diff3 also shows the base version between ||||||| and =======, and zdiff3 (Git 2.35+) does the same while trimming common lines. Seeing the base makes it much clearer who changed what.
git config --global merge.conflictStyle zdiff3
More on Conflicts, remotes, fetch, pull and push
What do conflict markers look like and how do you resolve them?BeginnerHow do you quickly take one side's version for a conflicted file?IntermediateWhat are stages 1, 2 and 3 in the index during a conflict?AdvancedHow do you see what a merge conflict is about before resolving?IntermediateWhat is the difference between `git fetch` and `git pull`?BeginnerWhat is a remote and what does `origin` mean?Beginner