git 清除已提交的分支

git remote prune origin --dry-run | grep 'would prune' | awk '{ print $4 }' | sed 's@origin/@@g' | xargs git branch -D

原文地址:https://www.cnblogs.com/cmsd/p/15344275.html