how to revoke last merge commit in git code example Example: revert last merge git git revert -m 1 commit_hash