<分区>
在一个 git 项目中,我在一个分支中做了一些重构,现在这个分支应该是一个新项目。 我把这个项目从 github 移到了 bitbucket。现在我想删除旧的 master,让重构分支成为新的 master。
我试图删除主人:
$ git branch -D master
Deleted branch master (was a947288).
$ git push origin :master
remote: error: refusing to delete the current branch: refs/heads/master
! [remote rejected] master (deletion of the current branch prohibited)
在 bitbucket 前端我也无法删除 master。那我怎么能做到呢?还是我必须创建一个新项目并将重构分支推送到其主分支?