Deleting remote master branch, refused due to being the current branch

前端 未结 2 585
天命终不由人
天命终不由人 2020-11-30 22:37

How do I delete a remote master branch from GitHub/Bitbucket?

I\'m trying:

# git push bb --delete master
remote: bb/acl: user is allowed. accepted payl         


        
2条回答
  •  感动是毒
    2020-11-30 23:37

    Note: for Bitbucket, you would change the default branch by accessing the settings of your repository, and changing the branch at the "Main branch" combo box.

    Main branch on Bitbucket

    Once the main branch is no longer master, then you can push and remove master.

提交回复
热议问题