how tdo i delete a github discard code example Example: git cancel last commit git reset --soft HEAD~1