Ever wish you could add something to a prior commit, but you've committed a few times since?
Simple, right? git commit --fixup <hash-to-fix>
followed by git rebase -i <last-good-hash>
I don't know about you, but that's one more hash than I want to deal with and since the --autostash
option sets up the rebase properly for me, I really don't want to have to deal with my editor, either....
Consider the "git fix" alias.
Definition: