Deleting a branch in GIT

To delete a local branch


git branch -d the_local_branch

To remove a remote branch

git push origin :the_remote_branch

or simply use the new syntax (v1.7.0)

git push origin --delete the_remote_branch

Author: Dev

Full Stack Developer at one of the largest Banks in Canada.