39

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,030
  • 21
  • 100
  • 124
John
  • 817
  • 2
  • 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
  • 817
  • 2
  • 14
  • 34
Piyush Aghera
  • 967
  • 7
  • 13
14
$ git push origin :name-of-your-branch
Eimantas
  • 48,240
  • 16
  • 132
  • 164