0Pricing
Git Advanced: Monorepo, Submodules & Workflows · Lesson

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

  1. Interactive Rebase and Amending
  2. Stashing and Cherry-picking Changes
  3. Reflog for Recovery
  4. Bisect: Hunting Down Bad Commits
← Back to Git Advanced: Monorepo, Submodules & Workflows