Git: Delete Branch From Local And Remote Repository

To delete a branch from a local repository:

git branch -D my_test_branch

Then to delete it from the remote repository:

git push origin :my_test_branch
or
git push origin --delete my_test_branch

Reference:
http://git-scm.com/docs/git-branch
http://git-scm.com/docs/git-push

Comments