no changes added to commit in git code example Example: undo last commit git $ git reset --soft HEAD~1