Remote a file from last commit
Sometimes inadvertently I end up adding binary files to a commit so I always forget on how to remove them, so I'm writing it down.
git reset --soft HEAD~1
git reset HEAD path/tothefile/youwanttoremove
# now commit it using the same commit message
git commit -c ORIG_HEAD