title: Revert a merge after being pushed
body: <p>Steps I performed:</p>
  <p>I have two branches branch1 and branch2,</p>
  <pre><code>$git branch --Initial state
  $branch1
  
  $git checkout branch2
  $git pull origin branch1 --Step1
  </code></pre>
  <p>I resolve the conflicts and did a</p>
  <pre><code>$git commit -m &quot;Merge resolved&quot;
  </code></pre>
  <p>then</p>
  <pre><code>$git checkout branch1
  $git merge branch2
  $git push origin branch1
  </code></pre>
  <p>Now I realised that while being at step1, the auto merging removed some code and the change code was pushed. Now I want to go back to my initial state in order to revert any changes. Looking for some immediate help?</p>