问题:
git更新代码push的时候出现如下:
Auto packing the repository in background for optimum performance.
See “git help gc” for manual housekeeping.
Nothing new to pack.

在这里插入图片描述
解决:
方法一:
1.输入命令:git fsck --lost-found,出现很多“dangling commit”
在这里插入图片描述

2.清空他们:git gc --prune=now,完成
在这里插入图片描述
方法二:执行$ find .git/objects -type f,再执行$ git gc
在这里插入图片描述

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐