git branch -r --merged | sed 's/origin\///' | egrep -v "(^\*|master|dev|v2)" | xargs -n 1 git push --delete origin
git branch --merged | egrep -v "(^\*|master|dev|v2)" | xargs -n 1 git branch -d
git fetch --prun
其中 master|dev|v2 表示不要删掉这 3...
git branch -r --merged | sed 's/origin\///' | egrep -v "(^\*|master|dev|v2)" | xargs -n 1 git push --delete origin
git branch --merged | egrep -v "...