git 批量删除分支

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

git 批量删除分支

上一篇:SAP-以树形方式显示 物料BOM


下一篇:Git报错解决:OpenSSL SSL_read: Connection was reset, errno 10054 错误解决