Part 5 of 6 · Chapter 3 of 3

Merge, Squash, or Rebase

The green button hides three different operations that leave three different histories on your main branch, and most teams pick by accident. See what each one writes, then meet the protection rules that decide who may press it.

Intermediate12 min read

Worth reading first: Replaying Commits Somewhere Else


Make a free account to read on

Every chapter is free — an account is how your progress, XP, and streak follow you from your laptop to your phone, and how you show up on the leaderboard. No payment, no trial.