Ori*_*ent 60 git github bitbucket
如何从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://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'
Run Code Online (Sandbox Code Playgroud)
我也试过了
git push bb :master
Run Code Online (Sandbox Code Playgroud)
但这一切都行不通.
Wou*_*r J 55
在选项的设置块中点击设置页面(好吧,只需点击你的github repo页面上的Settings选项卡),你就可以更改默认分支(你需要在github上有另一个默认分支) .

完成后,您可以删除它:
$ git push bb :master
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
40430 次 |
| 最近记录: |