title: Deleting remote master branch, refused due to being the current branch
body: <p>How do I delete a remote master branch from GitHub/Bitbucket?</p>
  <p>I'm trying:</p>
  <pre><code># git push bb --delete master
  remote: bb/acl: user is allowed. accepted payload.[K
  remote: error: refusing to delete the current branch: refs/heads/master[K
  To ssh://git@bitbucket.org/user/reponame.git
   ! [remote rejected] master (deletion of the current branch prohibited)
  error: failed to push some refs to 'ssh://git@bitbucket.org/user/reponame.git' 
  </code></pre>
  <p>Also I tried</p>
  <pre><code>git push bb :master
  </code></pre>
  <p>But all this does not work.</p>