title: How to revert multiple merges in Git
body: <p>I need to revert a branch to a previous point. 
  As you can see in the following picture the branch has multiple commits and merges done. 
  I need to revert this to the "fixing" commit.</p>
  
  <p><a href="https://i.stack.imgur.com/4kIUe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4kIUe.png" alt="branch history"></a></p>
  
  <p>So i tried:</p>
  
  <pre><code>git revert --no-commit fixingHashCode..HEAD
  </code></pre>
  
  <p>but the it throws an error:</p>
  
  <blockquote>
    <p>error: commit fixingHashCode is a merge but no -m option was given.
    fatal: revert failed</p>
  </blockquote>
  
  <p>Next i used:</p>
  
  <pre><code>git revert --no-commit fixingHashCode..HEAD -m 3
  </code></pre>
  
  <p>And a error was reported again:</p>
  
  <blockquote>
    <p>error: mainline was specified but commit fixingHashCode is not a merge.
    fatal: revert failed</p>
  </blockquote>
  
  <p>How can i acheive this?</p>