--- tags: - git --- I've found a nice and easy way to edit existing commits. Before I used the following "tedious" process. ``` git stash # Git rebase wants a clean working tree git rebase -i ... in the interactive editor, find the commit to edit, and mark it to edit ... ... write & quit ... git stash pop # Optional. Only if you've already made the changes on HEAD. git commit --amend git rebase --continue ``` Now we can do something much easier using a so called "fixup commit". ``` git commit --fixup= git rebase -i --autosquash ... write & quit ```