# solution1:
git branch | grep -vE "master|qa" | xargs git branch -D
# solution2:
git branch | grep -v "master\|qa" | xargs git branch -D
Bash-删除仓库中除master和qa分支外的其余本地分支
最新推荐文章于 2024-08-28 10:22:17 发布
# solution1:
git branch | grep -vE "master|qa" | xargs git branch -D
# solution2:
git branch | grep -v "master\|qa" | xargs git branch -D