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.
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.
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.
You can also use
git push origin --delete <yourBranchName>
$ git push origin :name-of-your-branch
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