| 1 | # Merge conflicts |
| 2 | |
| 3 | Consider setting [`merge.conflictStyle`](https://git-scm.com/docs/git-config#Documentation/git-config.txt-mergeconflictStyle) to `zdiff3`: |
| 4 | |
| 5 | ```gitconfig |
| 6 | [merge] |
| 7 | conflictStyle = zdiff3 |
| 8 | ``` |
| 9 | |
| 10 | With that setting, when a merge conflict is encountered, Git will display merge conflicts with the contents of the merge base as well. |
| 11 | delta will then display this as two diffs, from the ancestor to each side of the conflict: |
| 12 | |
| 13 | <table><tr><td><img width=500px src="https://user-images.githubusercontent.com/52205/144783121-bb549100-69d8-41b8-ac62-1704f1f7b43e.png" alt="image" /></td></tr></table> |
| 14 | |
| 15 | This display can be customized using `merge-conflict-begin-symbol`, `merge-conflict-end-symbol`, `merge-conflict-ours-diff-header-style`, `merge-conflict-ours-diff-header-decoration-style`, `merge-conflict-theirs-diff-header-style`, `merge-conflict-theirs-diff-header-decoration-style`. |