title: git branch -M main
body: <p>One of the things github now recommends is changing the branch to main instead of master.</p>
  <p>The code given on the github site is:</p>
  <pre><code>git branch -M main
  </code></pre>
  <p>That never works for me, so I thought I would mention it here.  I have a hard time believing
  this problem only occurs with me.</p>
  <pre><code>error: refname refs/heads/master not found
  fatal: Branch rename failed
  </code></pre>