revert the merged commit in github code example Example: revert last merge git git revert -m 1 commit_hash