Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete a Git remote branch from the NetBeans IDE? [duplicate]

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.

like image 374
John Avatar asked Sep 18 '13 08:09

John


People also ask

How do I delete a branch in NetBeans?

Go Branches -> Local (or Remote, depending on which one you need to delete). Select the branch you want to delete, right click on it, and choose Delete option.

How do I remove a remote git branch?

Steps to delete remote Git branchesIssue the git push origin –delete branch-name command, or use the vendor's online UI to perform a branch deletion. After the remote branch is deleted, then delete the remote tracking branch with the git fetch origin –prune command.


2 Answers

You can also use


git push origin --delete <yourBranchName> 
like image 160
Piyush Aghera Avatar answered Sep 20 '22 14:09

Piyush Aghera


$ git push origin :name-of-your-branch 
like image 32
Eimantas Avatar answered Sep 20 '22 14:09

Eimantas