Reverting merge commits
The -m
option has to be specified when reverting merge commits.
Merge commits have multiple parents and -m
specifies which parent commit to revert to.
Source: https://stackoverflow.com/questions/7099833/how-to-revert-a-merge-commit-thats-already-pushed-to-remote-branch