有时候使用git的时候,会提示这个信息
warning: There are too many unreachable loose objects; run 'git prune' to remove them.
原因是因为提交的改动过多,导致本地的缓冲区占用太大。
可以执行这行命令,清理优化本地的 git 项目
git gc --prune=now
然后就可以正常使用了
有时候使用git的时候,会提示这个信息
warning: There are too many unreachable loose objects; run 'git prune' to remove them.
原因是因为提交的改动过多,导致本地的缓冲区占用太大。
可以执行这行命令,清理优化本地的 git 项目
git gc --prune=now
然后就可以正常使用了