title: Git Push to remote rejected due to abandon change
body: <p>I am facing this issue in Gerrit, Git.</p>
  
  <ol>
  <li>I made changes(branch-ONE) and pushed to gerrit(say change Id-240) from eclipse. But not merged.</li>
  <li>Next I created one more branch (branch-TWO) and commit the changes without amending to previous commit. So got new gerrit change Id (say, change id-241).</li>
  <li>Next, I abandoned the changeId 240.</li>
  <li>Now, when i try to push my changes from branch-TWO, it says remote rejected as it is trying to push to changeid 240 instead of 241. Why?</li>
  </ol>
  
  <p>What I tried --</p>
  
  <p>After reading through internet of possible solutions, I did HARD reset and my changes of changeId-241 got vanished. 
  I though got it back from reflog.
  But moment, when I try to checkOut branch-ONE (to do HARD Reset), my changes of changeId-241 is vanished.</p>
  
  <p>I am trying to follow this -
  <a href="https://stackoverflow.com/questions/31947790/git-merge-pending-due-to-an-abandoned-commit">Git merge pending due to an abandoned commit</a></p>