how to properly delete a commitd file in git code example
Example: remove a file from git commit
git reset --soft HEAD^
or
git reset --soft HEAD~1
git reset HEAD path/to/unwanted_file
git commit -c ORIG_HEAD
git reset --soft HEAD^
or
git reset --soft HEAD~1
git reset HEAD path/to/unwanted_file
git commit -c ORIG_HEAD