title: git - how to delete local master if you have no other branches
body: <p><em>EDIT: The intent is to do a completely clean reset of my local copy of master, to remote master. I prefer to reset to remote, over <code>$ git reset --hard HEAD</code>, which I've found on occasion gives me issues.</em></p>
  <p>I know I can delete a local git branch like so:</p>
  <pre><code>$ git branch -D master
  </code></pre>
  <p>but is there a way to do that if you have no other branches? as git won't let you delete the branch you're currently on.</p>
  <p>Normally I'd just switch into another branch, but what if you have no other branches? Create a temporary branch?</p>
  <p>NOTE: not quite a duplicate of <a href="https://stackoverflow.com/q/12606612/26510">this other question</a>, I believe</p>