git报错fatal: protocol error: bad pack header

时间:2019-11-26 16:35:54   收藏:0   阅读:2313

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!