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

  1. 01Inspect
  2. 02Rewrite
  3. 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.

← All Git labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Clean an Unpublished Branch with Interactive Rebase — Git lab | Kube Labs