title: How do I delete a remote branch in Git?
body: <p>I created a branch <code>notmaster</code> to commit as well as push some changes. When I was finished with that branch, I merged the changes back into <code>master</code>, pushed them out, and then deleted the local <code>notmaster</code>.</p>
  
  <pre><code>$ git branch -a
  * master
    remotes/origin/master
    remotes/origin/notmaster
  </code></pre>
  
  <p>Is there anyway to delete the remote <code>notmaster</code>?</p>
  
  <hr>
  
  <p>A little more clarity, with the <a href="https://stackoverflow.com/a/4159972/478288">solution from Ionut</a>:</p>
  
  <p>The usual method failed for me:</p>
  
  <pre><code>$ git push origin :notmaster
  error: dst refspec notmaster matches more than one.
  </code></pre>
  
  <p>That's because I had a tag with the same name as the branch. This was a poor choice on my behalf and caused the ambiguity. So in that case:</p>
  
  <pre><code>$ git push origin :refs/heads/notmaster
  </code></pre>