How to delete a remote branch?
git push -d origin branch_name
To delete a remote branch from your origin use git push -d origin branch_name
. The command will remove the branch from your origin (for example on GitHub or GitLab), but keeps your local branch.
git push -d origin other-branch
To github.com:githint/playground-remote.git
- [deleted] other-branch
See git push to learn more about it.