会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
cococe
管理
2023年5月6日
批量清理多个没有远程对应分支的本地分支
摘要: 如果您需要批量清理多个没有远程对应分支的本地分支,可以使用以下命令: git fetch --prune && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D 这个命令用于清理本地已经不存在的远程分支。
阅读全文
posted @ 2023-05-06 18:25 cococe
阅读(17)
评论(0)
推荐(0)
编辑
公告