How to remove the git remote branch from bitbucket?

Member

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

How to remove the git remote branch from bitbucket?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by lew , 4 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.