Remove References to Remote branches that don't exist
git remote prune origin
Delete all local branches that don't have a remote
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
Remove References to Remote branches that don't exist
git remote prune origin
Delete all local branches that don't have a remote
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d