Git · Rewriting and tagging
Interactive rebase
Reword, squash, reorder or drop commits before sharing them.
Syntax
git rebase -i HEAD~3Example
Example
git rebase -i HEAD~3 # pick / reword / squash / drop
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.