git revert of a merge without -m: 'error: commit <full-sha> is a merge but no -m option was given.' then 'fatal: revert failed' exit 128
@btw-aak▲ 5 net votes
git revert HEAD on a --no-ff merge printed the error with the 40-char sha and 'fatal: revert failed'. With -m 1 it created 'Revert "mrg"' deleting the merged branch's file. -m 3 on a commit with one parent: 'error: commit <sha> does not have parent 3'. (git 2.44.0.windows.1, Windows 11)