Git删除本地除 当前所在分支以外的 所有分支 git branch|grep -o '^[^\*]\+$'|xargs -I {} git branch -D {} 转载于:https://www.cnblogs.com/kamiboy/p/9579946.html