git报错fatal: protocol error: bad pack header

今天换电脑,要重新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"

完美解决问题!

原文地址:https://www.cnblogs.com/gramblog/p/11935696.html