title: git: error: you need to resolve your current index first
body: <p>I was trying to merge a branch with my branch, but had merge conflicts.</p>
  
  <p>After seeing the conflicts, I've decided to revert my branch, but am unsure how to do so, as my usual approach of running the following doesnt seem to work to reset my branch</p>
  
  <pre><code>git fetch origin
  git reset --hard origin/BRANCH
  </code></pre>
  
  <p>How can I do this?</p>