made commit before pushing previous commit code example Example: cancel a commit not pushed git reset --soft HEAD~