alexislucena
4/27/2017 - 7:54 AM

Delete local and remote branch

Delete local and remote branch

Delete local branch

$ git branch -d <branch_name>

Delete remote branch

$ git push origin --delete <branch_name>

List all branchs

$ git branch -a

Update branch remote list

$ git remote update origin --prune

http://stackoverflow.com/questions/2003505/how-to-delete-a-git-branch-both-locally-and-remotely http://kb.detlus.com/articles/git/how-to-update-remote-branch-list-on-local-machine/