Interactive Rebase and Squashing
Part of the Git course
Real work does not happen in one clean commit. You commit, then you commit again five minutes later because you spotted a typo, then a third time because you forgot to save a file before the first commit. None of that is a problem while you are heads-down working.
Picture handing someone a stack of index cards, one per commit, in the order you made them, and asking them to retype your notes into a cleaner set of cards: some cards get copied over exactly as they are, some get merged into the card before them, some get relabeled with a better title.
Want to learn Git Interactive Rebase and Squashing in a real environment?
Click below, get a fresh Linux box with Git ready to go, and work through Interactive Rebase and Squashing hands-on with an AI tutor that knows your code.
Start this lessonInteractive Rebase and SquashingWhat you'll learn
- Git rebase -i
- Pick
- Squash
- Fixup
- Reword
- Autosquash
