gitlab fatal: The remote end hung up unexpectedly.01 GiB | 3.67 MiB/sfatal: early EOFfatal: index-

# 修改全局提交缓存大小
git config --global http.postBuffer 524288000

# 修改全局下载最低速度以及对应的最长时间
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

上述不好使

这种问题是因为克隆会把历史所有的文件压缩成pack文件导致,只克隆最近一次的提交即可:

git clone -b uat --depth 1 http://gitlab.fuk.net/shi/mydemo.git

确保这个配置只有这个 不然git pull报错 

fatal: early EOF - when performing git clone (#3419) · Issues · TortoiseGit / TortoiseGit · GitLab

https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning/6849424#6849424

克隆的文件过大;服务器的sssl限制了

env GIT_SSL_NO_VERIFY=true git clone https://github.com/ffc/project.git

也可以全局设置,忽略验证:

git config --global http.sslVerify false

必须设置

git config http.postBuffer 524288000000000

这种是好使的,尝试了无数种

[core] 
    packedGitLimit = 2047m 
    packedGitWindowSize = 2047m 
[pack] 
    deltaCacheSize = 2047m 
    packSizeLimit = 2047m 
    windowMemory = 2047m

 git - fatal: early EOF fatal: index-pack failed - Stack Overflow

linux执行快

清理 git commit 历史中的大文件_xiaosongluo的博客-CSDN博客_git历史大文件 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值