View on GitHub

notes

A collection of my TIL notes and commonplace book entries.

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