今天换电脑, 要重新 clone 新项目, 结果报了如下错误:
remote: Counting objects: 19442, done.
remote: warning: suboptimal pack - out of memory
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
网上搜索了下, 进入 Git 服务器, 输入如下命令: Git config --global pack.windowMemory "100m"
完美解决问题!
来源: http://www.bubuko.com/infodetail-3304831.html