1.删除本地分支
git branch | grep '模糊匹配分支名' | xargs git branch -D
eg: git branch | grep 'feature_' |x args git branch -D
2.删除远程分支
git branch -r | grep '模糊匹配分支名' | sed 's/origin\///g' | xargs -I {} git push origin :{}
eg: git branch -r | grep 'uat_fixbug' | sed 's/origin\///g' | xargs -I {} git push origin :{}