Clean History
Intermediate
About Git →
Squash a messy branch into one tidy commit, and rebase for a straight-line history. 2 quick levels that build on Intro to Git.
0 / 2 lessons complete
Start Lesson 1
1
Squash a Feature
Land a messy branch as one tidy commit with merge --squash.
2
Rebase: A Straight Line
Replay your branch on top of main, then fast-forward: no merge commit.