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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
John
  • 837
  • 3
  • 14
  • 34
  • Maybe it is not possible to do it in your NetBeans version: https://netbeans.org/bugzilla/show_bug.cgi?id=209644 – Pigueiras Sep 18 '13 at 08:51

2 Answers2

40

You can also use


git push origin --delete <yourBranchName>
John
  • 837
  • 3
  • 14
  • 34
Piyush Aghera
  • 965
  • 7
  • 13
14
$ git push origin :name-of-your-branch
Eimantas
  • 48,927
  • 17
  • 132
  • 168