`
aigo
  • 浏览: 2675932 次
  • 性别: Icon_minigender_1
  • 来自: 宜昌
社区版块
存档分类
最新评论

git pull的时候报错:fatal: protocol error: bad pack header

git 
阅读更多

 

remote: Counting objects: 146, done.

remote: fatal: unable to create thread: Resource temporarily unavailable

error: git upload-pack: git-pack-objects died with error.

fatal: git upload-pack: aborting due to possible repository corruption on the remote side.

remote: aborting due to possible repository corruption on the remote side.

fatal: protocol error: bad pack header

 

首先需要你在git bash中设置下命令(在服务端设置,不是客户端):

git config --global pack.windowMemory "100m"

git config --global pack.packSizeLimit "100m"

git config --global pack.threads "1" 

 

如果还不是不行,可能是服务端的git版本有问题,安装最新的git并执行上面的命令

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics