40

How do I delete a Git remote branch?

I work with NetBeans, and I tried to delete a remote branch from IDE, but on the delete branch it deleted only locally.

1

2 Answers 2

40

You can also use


git push origin --delete <yourBranchName>
14
$ git push origin :name-of-your-branch

Not the answer you're looking for? Browse other questions tagged or ask your own question.