Git Change Commit

  • git commit --amend change least commit

  • git revert HEAD cancel the least commit

  • git reset --hard HEAD~~ delete 2 commit in master least

    if your operation is error, you can rollback this with

    git reset --hard ORIG_HEAD

:blush: