Interactive Rebase and Amending
Learn to rewrite history with `git rebase -i` for cleaner commits and use `git commit --amend` to modify the last commit.
Clean Up Your Git History
Git history gets messy — a forgotten file, a typo'd message, ten tiny commits that should be one. Git lets you rewrite history to clean it up.
Amending Your Last Commit
git commit --amend fixes your most recent commit: change the message, add forgotten files, or tweak content. It replaces the last commit with a tidier one.
All lessons in this course
- Interactive Rebase and Amending
- Stashing and Cherry-picking Changes
- Reflog for Recovery
- Bisect: Hunting Down Bad Commits