🔁 Merge vs. Rebase Vocabulary
0 / 5 completed
1 / 5
A team policy states: "Always squash commits before merging a PR."
What does squashing commits do to the Git history?
Squash merge strategies:
| Strategy | Main branch history | Feature commits |
|---|---|---|
| Squash merge | 1 commit per feature (clean) | Lost (compressed into one) |
| Merge commit | Merge commit + all feature commits | Preserved with merge bubble |
| Rebase merge | All feature commits (linear) | Preserved, new SHAs |
Key vocabulary: squash merge, atomic commit, clean history, squash vs. merge commit vs. rebase.