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?
Delete a branch with git branch -d <branch> . The -d option will delete the branch only if it has already been pushed and merged with the remote branch. Use -D instead if you want to force the branch to be deleted, even if it hasn't been pushed or merged yet. The branch is now deleted locally.
To delete a remote branch, you can't use the git branch command. Instead, use the git push command with --delete flag, followed by the name of the branch you want to delete.
Here's how I proceed in Netbeans 8.1 (without using the terminal):
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With