How To Delete a Branch from a Remote Repo in GIT

Do it locally:
1 |
git branch -d yourBranchName |
Deleted branch yourBranchName (was 340c10d).
Do it remotely, and please note the : below! (replace origin with your repo, if different)
1 |
git push origin :yourBranchName |
To git.yourServer.com:/repos/yourProject.git
- [deleted] yourBranchName
1 |
git push origin --delete yourBranchName |
Leave Your Comment
All fields marked with "*" are required.