1 | git branch -a | grep -v -E 'master|develop' | xargs git branch -D |
1 | git branch | grep "feature-2020" | xargs git branch -d |
1 | git branch -r| grep -v -E 'master|develop' | sed 's/origin\///g' | xargs -I {} git push origin :{} |
git如何批量删除本地和远程分支
1 | git branch -a | grep -v -E 'master|develop' | xargs git branch -D |
1 | git branch | grep "feature-2020" | xargs git branch -d |
1 | git branch -r| grep -v -E 'master|develop' | sed 's/origin\///g' | xargs -I {} git push origin :{} |
上一篇:解决Git在添加ignore文件之前就提交了项目无法再过滤问题
下一篇:Vue打包上线时移除console(babel-plugin-transform-remove-console)
本文链接: http://www.nanshanqiao.com/zz_article/85.html