¶
Remove deleted remote branches
git remote prune origin
¶
Delete local branches that no longer exists on remote
git branch -vv | awk '/gone]/ {print $1}' | xargs git branch -D