git list commit not pushed and reset code example Example: cancel a commit not pushed git reset --soft HEAD~