Why does git revert complain about a missing -m option?

So I’m working on a project with other people, and there’s multiple github forks being worked on. Someone just made a fix for a problem and I merged with his fork, but then I realized that I could find a better solution. I want to revert the commit I just made. I tried doing this with git revert HEAD but it gave me this error:

fatal: Commit <SHA1> is a merge but no -m option was given.

What does that mean? When I merged and committed, I did use the -m option to say “Merged with <username>”.

What am I doing wrong here?

4 Answers
4

Leave a Comment