title: Git - How to revert a rebase that has been pushed to the remote branch (not origin)
body: <p>I was working on my local branch doing some changes and when I finished I pushed everything to the remote brach. Before merging the branch with develop I thought I should do a rebase cos the other guys had merged a lot of their code there. When I did the rebase and resolved some conflicts I pushed to the remote branch. Unfortunately the way I resolved the  conflicts was wrong so now I need to go back before the rebase happened and also update the remote branch to the new state.</p>
  
  <p><strong>What I tried</strong></p>
  
  <ol>
  <li><p>Reset the head</p>
  
  <p>git reset --hard HEAD@{x} //where x is the head just before the rebase</p></li>
  </ol>
  
  <p>This works and reverts the changes on my local branch but then I don't know what to make the remote branch update to that since it doesn't create a new commit that can be pushed to the remote. </p>