Clean an Unpublished Branch with Interactive Rebase
Five noisy commits — wip, fix typo, oops — on a private branch. Rewrite them into one feature commit and one docs commit that a reviewer can read, without losing a byte.
Project labintermediate~30 minPro
What you'll do
- ✓Edit a rebase todo list: pick, fixup, reword
- ✓Squash fixes into the commit they fix
- ✓Verify content is unchanged after rewriting
- ✓Rewrite only history nobody else has
Lab outline
- 01Inspect
- 02Rewrite
- 03Verify
Before you start
- Rebasing (git-19), reset and ORIG_HEAD (git-22)
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.