xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

git clear local branches All In One

git clear local branches All In One

pruned / 修剪

# 删除 origin 上不存在的本地分支
$ git remote prune origin

refs

https://stackoverflow.com/questions/13064613/how-to-prune-local-tracking-branches-that-do-not-exist-on-remote-anymore

https://www.git-tower.com/learn/git/faq/delete-local-branch

https://stackoverflow.com/questions/10610327/delete-all-local-git-branches

https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/delete-all-branches-except-master-main-local-remote



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-10-18 20:33  xgqfrms  阅读(64)  评论(1编辑  收藏  举报