TIL: Remove File From Last Git Commit
Ach! I over-committed! (heh, heh, joke, joke.)
I made one big commit instead of two smaller ones. Here's how to fix that:
git reset --soft HEAD^
Now un-stage the file you accidentally committed:
git reset HEAD MyFile
Now re-commit. I forgot to do this, but you can even "re-use the same commit message" by using the -c flag.
git commit -c ORIG_HEAD