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