Skip to content

The three-way merge

A three-way merge compares A, B and their common ancestor C; the conflict appears only where A and B both changed the same line relative to C.

graph TD
  C[Common ancestor C] --> A[Branch A tip]
  C --> B[Branch B tip]
  A --> M[Merge commit M]
  B --> M
  style C fill:#FFF3E0
  style M fill:#E8F5E9