Mac 中homebrew-core的.git文件过大问题解决
问题还原
- 执行过brew update后结果以下目录占用20G
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
- 或执行git 会提示以下信息
warning: There are too many unreachable loose objects; run 'git prune' to remove them.
步骤说明
在相应目录下执行
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git gc --prune=now
原因:本地的缓冲区占用太大,清理优化该git项目
清理完成后如下
➜ homebrew git:(stable) du -sh ./homebrew-core |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Axinの博客!
评论