How to remove the git remote branch from bitbucket?

Member

by denis , in category: Third Party Scripts , 10 months ago

How to remove the git remote branch from bitbucket?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by lew , 10 months ago

@denis 

To remove a remote branch from Bitbucket, you can use the following command in your terminal:

1
git push <remote_name> --delete <branch_name>


For example, if you want to delete a remote branch named "feature-branch", you can use the command:

1
git push origin --delete feature-branch


This command deletes the remote branch from the Bitbucket repository. Make sure to replace "origin" with the name of your remote repository and "feature-branch" with the name of the branch you want to delete.

Related Threads:

How to push to a specific branch on bitbucket using git?
How to create a remote repository from a local repository in git?
How to branch from deleted branch in git?
How to remove .git directory while using git clone?
How to get bitbucket branch url?
How to remove remote url from github repository?