title: How to rename branch to remove capitalization?
body: <p>I named a branch <code>Name</code> instead of <code>name</code> and would like to change it to the latter.</p>
  
  <p>I tried renaming the branch locally:</p>
  
  <pre><code>git branch -m tmp
  </code></pre>
  
  <p>Deleting the branch on github:</p>
  
  <pre><code>git push origin --delete Name
  </code></pre>
  
  <p>Renaming the temp branch:</p>
  
  <pre><code>git branch -m name
  </code></pre>
  
  <p>Pushing the branch to github:</p>
  
  <pre><code> git push origin name
  </code></pre>
  
  <p>But when I push the branch to github, I get this output:</p>
  
  <pre><code>Total 0 (delta 0), reused 0 (delta 0)
  To https://github.com/xx/xx.git
   * [new branch]      name -&gt; Name
  </code></pre>
  
  <p>Why did github rename the branch when I pushed it? How can I rename my branch from <code>Name</code> to <code>name</code>?</p>