Courses / GitHub
32. Squashing commits with interactive rebase
Combining multiple commits into one using interactive rebase to keep a clean feature history before pushing.
Git / Bash
Squashing commits with interactive rebase
Combining several small commits into a single clean commit before sharing your branch.
"I made five tiny fixes during a feature — I want one tidy commit to keep history readable."
Interactive rebase lets you rewrite a sequence of commits, choosing to squash (merge) earlier commits into one, edit commit messages, and reorder or drop commits before pushing.
"I made five tiny fixes during a feature — I want one tidy commit to keep history readable."
Interactive rebase lets you rewrite a sequence of commits, choosing to squash (merge) earlier commits into one, edit commit messages, and reorder or drop commits before pushing.