Module lessons (3/4)
Clean PR commits with interactive rebase (-i)
Reorder, reword, squash, fixup and drop WIP commits cleanly with the interactive todo planner.
What you'll learn in this lesson
- Sculpt messy local WIP commits into focused, review-ready history using Interactive Rebase (
git rebase -i). - Choose intentionally between
pick,reword,squash,fixup, anddropactions in a rebase todo plan. - Fold draft commits into one cohesive commit and finish integrating cleanly onto
main.
Overview
Exploratory development leaves a trail of honest drafts like "wip", "fix typo", and "maybe now?". Before requesting a code review, interactive rebase (git rebase -i <base>) opens an ordered todo list of every commit between <base> and HEAD, letting you curate history before anyone else sees it:
Preview how replaying, squashing, and folding commits reshapes branch graphs inside the Branch & Merge Lab below before executing --plan commands against squash-messy-wip:
Sections covered in this lesson
- 1Turning Draft Noise into Clean Engineering Commits
- 2Interactive Todo Workbench Live
Unlock "Clean PR commits with interactive rebase (-i)" and the full Git & Modern Collaboration curriculum
Reorder, reword, squash, fixup and drop WIP commits cleanly with the interactive todo planner.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Git & Modern Collaboration plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.