摘要: 如果您需要批量清理多个没有远程对应分支的本地分支,可以使用以下命令: 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) 编辑