解决方法:
1.输入命令:git fsck --lost-found,可以看到好多“dangling commit”
2.清空他们:git gc --prune=now
git长时间未清理无法拉取代码( git Auto packing the repository in background for optimum performance)
最新推荐文章于 2024-11-15 14:21:04 发布
本文介绍了如何使用Git命令`git fsck --lost-found`查找并清理悬空的提交,以及通过`git gc --prune=now`进行垃圾回收,优化本地Git仓库的存储效率。
2364

被折叠的 条评论
为什么被折叠?



