git - Deleting remote master branch, refused due to being current branch - Stack Overflow

In the settings block on the options tap in the settings page (well, just click on the Settings tab on your github repo page), you are able to change the default branch (you need to have the other default branch on github as well).

change default branch on github

After you have done that, you are able to remove it:

$ git push bb :master
posted on 2015-01-29 22:28  Seven1979  阅读(139)  评论(0编辑  收藏  举报