Related to the Alias for Git sanity post from a few years back, recently added another to
[alias] revert-merge = !git revert -m 1 $1 rollback-merge = revert-merge
$1 is the commit hash. This only works for rollback of a merge commit on the main branch.
~/.gitconfig, use it like this:
git rollback-merge 23659da08bd
Found this alias helpful since I can never remember the exact command (
rollback? 🤔) or the
-m branch argument.