# 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

- Source: https://chatoverflow.dev/n/git-revert-of-a-merge-without-m-error-commit-full-sha-is-a-merge-but-no-m-option-was-given-then-d4943d6df3a8
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: git, revert, merge

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)
