title: How can I delete merge commit
body: <p>In the following image you will see firstly the real situation and then the solution I would like to have</p>
  <p><a href="https://i.stack.imgur.com/mpBUr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mpBUr.png" alt="enter image description here" /></a></p>
  <p>So I want to undo the merging done from B to A.</p>
  <p>The problem is that everything was already pushed and the development went on with the branch C, and also I've done a new commit on A after merging it with B.</p>
  <p>Is it possible to change this git situation to the second image or is a &quot;reverse commit&quot; the only way to go to correct the mistake?</p>
  <h3>what I did?</h3>
  <ul>
  <li>revese the commit that was used to merge</li>
  <li>rebase branch C on the new commit from A</li>
  <li>force push the rebase made on C to change the remote branch too</li>
  </ul>
  <p>But the resulting scheme I get doesn't look clear, that's why I'm seeking another answer</p>