Linux Terminal Glossary
›
Git - Advanced
git rebase -i HEAD~5
Category:
Git - Advanced
git rebase -i HEAD~5
Copy command
Interactively rebase last 5 commits to squash/reorder
Like git rebase -i HEAD~3 but for 5 commits — opens an interactive editor to rewrite, reorder, or squash commits.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.