Удаление удаленной главной ветки, отклонено из-за текущей ветки

Как удалить удаленную главную ветку из GitHub / Bitbucket?

Я пытаюсь:

# 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://[email protected]/user/reponame.git
 ! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to 'ssh://[email protected]/user/reponame.git' 

Тоже попробовал

git push bb :master

Но все это не работа.

Ответы на вопрос(2)

Ваш ответ на вопрос