Delete branches in Bitbucket
I've created lots of branches in one of our repositories. Those branches are for testing before it will be pulled to the master. Now I see lots of them on the list and they we will never use it again. How to delete those branches directly to Bitbucket? Marcus If the branches are only local, you can use -d if the branch has been merged, like git branch -d branch-name If the branch contains code you never plan on merging, use -D instead. If the branch is in the upstream repo (on Bitbucket) you can remove the remote reference by git push origin :branch-name Also, if you're on the Bitbucket