How to remove the git remote branch from bitbucket?

后端 未结 3 541
花落未央
花落未央 2021-02-04 00:56

I try to remove the git remote branch on the bitbucket by git push command:

qty:workspace qrtt1$ git push origin :my_branch
remote: fatal: bad object 00000000000         


        
3条回答
  •  温柔的废话
    2021-02-04 01:38

    You can't delete a branch from Bitbucket if that branch is set as the Main Branch. You need to go into the Admin section of your Bitbucket repository and select a different branch for the Main Branch. You should then be able to remote the branch using

    git push  :
    

提交回复
热议问题