git 批量删除分支
标签(空格分隔): git
批量检出远程分支到本地
git branch -r | grep -v ‘\->‘ | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
批量删除远程分支
git branch | grep "ywf*" | xargs git push origin --delete
批量删除本地分支
git branch | grep "ywf*" | xargs git branch -D