How to remove local Git branches that do not exist on the remote server?
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; doneHow to remove local Git branches that do not exist on the remote server?
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done