Revise last git commit. Remove file that shouldn't be there.
git reset --soft HEAD~1 git reset HEAD path/to/unwanted/file git commit -c ORIG_HEAD