git rebase -i --autosquash HEAD~5
Category: Git - Advanced
git rebase -i --autosquash HEAD~5
Rebase and automatically squash fixup commits
Runs an interactive rebase and automatically moves fixup! commits to squash with their targets. --autosquash handles the arrangement.