Skip to content

Why it matters

Merges preserve complete history: every commit of every branch survives, and the merge commit records both parents for auditability.

A merge is the tool for combining divergent work without destroying either side. The trade-off is history shape: a merge creates a "bubble" in the graph (two parents join into one commit), which some teams find noisy. Rebase is the alternative when a linear history is preferred, at the cost of rewriting commits.