title: remote/origin/master is ahead of master
body: <p>I have a problem which is the reverse case of the problem <a href="https://stackoverflow.com/questions/39118295/head-master-ahead-of-origin-master">here</a> and <a href="https://stackoverflow.com/questions/9838758/git-reset-remotes-origin-master-not-in-sync-with-local-master">here</a>. My situation looks like this:</p>
  <p><a href="https://i.stack.imgur.com/lxyiY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lxyiY.jpg" alt="enter image description here" /></a></p>
  <p>So, <code>remotes/origin/master</code> is ahead of <code>master</code>. When I issue <code>git status</code> I obtain:</p>
  <pre><code>On branch master
  Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
    (use &quot;git pull&quot; to update your local branch)
  </code></pre>
  <p>However, I do not want to move or fast-forward <code>master</code> to <code>remote/origin/master</code>. Rather, I want <code>remotes/origin/master</code> to move back or rewind to where <code>master</code> currently is. All of the <code>Local uncommitted changes, not checked in to index</code> has been backed up elsewhere so that after moving <code>remotes/origin/master</code> back to <code>master</code>, I can recreate the changes if needed. All of the changes currently in <code>remotes/origin/master</code> are not useful and can be discarded.</p>
  <p>I tried the following:</p>
  <p><code>git branch -d babe82a3bb3efb71e6fdff38e40ec08fe691e5d6</code> in an attempt to achieve this rewind of <code>remotes/origin/master</code>. This gives error:</p>
  <p><code>error: branch 'babe82a3bb3efb71e6fdff38e40ec08fe691e5d6' not found.</code></p>
  <p>I then tried:</p>
  <p><code>git branch -d remotes/origin/master</code>, and this gives error:</p>
  <p><code>error: branch 'remotes/origin/master' not found.</code></p>
  <p>Is there a way to achieve this?</p>