How to remove a git branch in Netbeans?

zygimantus picture zygimantus · Apr 17, 2015 · Viewed 8.4k times · Source

I am using Netbeans 8 with Git plugin. I have a branch that I would like to delete, but I don't see an option for that. How to do it?

enter image description here

Answer

Pavel Vergeev picture Pavel Vergeev · Jul 18, 2016

Here's how I proceed in Netbeans 8.1 (without using the terminal):

  1. Team -> Repository -> Repository browser.
  2. Repository browser is opened on the bottom. Go Branches -> Local (or Remote, depending on which one you need to delete).
  3. Select the branch you want to delete, right click on it, and choose Delete option.

enter image description here

I know I'm late, but I hope it'll help somebody in the future.

Footnote: Make sure you're not currently active in the branch you want to delete as the delete option will be greyed out. Switch to another branch then you can delete the one you need.