← TechnologyThe essentials of

Merge-base: finding a shared base between histories

Publisher: ResumeMaker • 1 source

Published: 22 Oct 2026 16:11 · Updated: 22 Oct 2026 16:11

AI source check: 22 Oct 2026 14:04. This is not editorial approval.

In a few sentences

In brief

git merge-base finds suitable common ancestors for merging commits. A pair can have more than one best common base.

Useful to know

git merge-base finds suitable common ancestors for merging commits. A pair can have more than one best common base. [1]

This helps explain where changes diverged, but is not merely a date comparison. History is a graph of relationships. To check whether one revision precedes another, use ancestry semantics rather than only the older timestamp.

Sources

For further detail and to check the information:

  1. [1] Git - git-merge-base Documentation ↗