If you commit and don’t push something and want to reset the commit.
git commit git reset -—soft HEAD^ # edit what needs to be edited git commit -a -c ORIG_HEAD