how Do I delete the last commit in gitt code example Example: undo local commit $ git reset --soft HEAD~1