remove a file from git commit

Shell
git reset --soft HEAD^ 
or
git reset --soft HEAD~1
git reset HEAD path/to/unwanted_file
git commit -c ORIG_HEAD git reset file-name
Source

Also in Shell: