title: Cant git push to master after revert
body: <p>I pushed my changes to my remote master branch by mistake. So to keep them safe I created a <code>backup</code> branch. I then reverted the changes I did to remote master.</p>
  
  <p>On my local master branch I ran:</p>
  
  <pre><code>git revert &lt;commit_sha&gt;
  </code></pre>
  
  <p>and then</p>
  
  <p>git push</p>
  
  <p>I have now finished working on the new branch (backup) and it all looks good. But I can't push the changes from my local <code>backup</code> branch to remote master. When I run <code>git pull</code> on my backup branch the changes I made are lost. The code is replaced with the contents of the remote master.</p>
  
  <p>Is there a way for me to push my changes to the remote master branch without losing my work?</p>