https://stackoverflow.com/questions/6217156/break-a-previous-commit-into-multiple-commits git rebase --autosquash -i HEAD~8 replace pick with edit (e for short) git reset HEAD~ git rebase --continue