How to remove a remote git branch from a bitbucket?

I am trying to remove a remote git branch on a bitpack with the git push command:

qty:workspace qrtt1$ git push origin :my_branch remote: fatal: bad object 0000000000000000000000000000000000000000 remote: bb/acl: qrtt1 is allowed. accepted payload. remote: fatal: bad object 0000000000000000000000000000000000000000 To git@bitbucket.org:qrtt1/workspace.git - [deleted] my_branch 

However, only the branch in my local step is deleted. How to remove it?

PS. I can delete the remote branch in the same way as from github.

+23
git bitbucket
Nov 08 2018-11-11T00:
source share
3 answers

However, he talks about these errors / warnings (maybe some post-hook that BitBucket has does not fit?), He went ahead and removed the my_branch branch, as indicated by the last line. Go to the web interface and make sure that the branch has really disappeared.

+10
Nov 08
source share

You cannot delete a branch from Bitbucket if this branch is set to Primary . You need to go to the Admin section of your Bitbucket repository and select a different branch for the Main branch . Then you can delete the branch with

 git push <repository> :<branch> 
+29
Apr 17 '12 at 12:50
source share

I found the same problem, only the local one was deleted, but not removed. Finally, I found a solution from http://groups.google.com/group/gitorious/browse_thread/thread/5afe8581cdd96d2b , just use

 git push <repository> :<branch> 

After that, it should not be on the Bitbucket website.

+5
Feb 25 '12 at 8:23
source share



All Articles