Delete local branches not on remote
git branch -vv | grep ': gone]' | grep -v "\*" | awk '{ print $1; }' | xargs git branch -d
Delete local branches not on remote
git branch -vv | grep ': gone]' | grep -v "\*" | awk '{ print $1; }' | xargs git branch -d