3

I am trying to revert a commit on protected master branch using

   git revert <hash number> 

but get an error

error: commit <hash number> is a merge but no -m option was given.
fatal: revert failed

I tried to understand documentation for -m option here but I do not understand it entirely. How can I get around this error?

user1411335
  • 3,139
  • 3
  • 18
  • 24
  • 1
    I looked for some earlier answers that might describe *why* there is a `-m` option, and the best I found is https://stackoverflow.com/a/5971033/1256452. Does that suffice, and if not, how much do you want to know about revert? :-) – torek Nov 20 '17 at 19:01
  • Great. This solved my issue – user1411335 Nov 20 '17 at 19:06

0 Answers0