If you want to revert a merge commit on remote origin, then you can do that with the following commands:
git revert -m 1 <commit-hash> git push -u origin <branch-name>
-m options from StackOverflow:
git revert -m, the
-moption specifies the parent number. This is needed because a merge commit has more than one parent, and Git does not know automatically which parent was the mainline, and which parent was the branch you want to un-merge.