git clone 大文件 eof 错误

git clone 大文件 eof 错误

在代码仓库体积较大或网络状况不佳的情况下,推拉仓库需要大量的时间,有时会经常失败,除了使用 Git LFS 提效外,但配置上稍烦,我们可以使用以下两张方式来尝试解决,基本上可以满足。

解决方式一:采用 ssh 方式

shell 复制代码
git clone git@address/git/xxx.git
# 如果 ssh 依旧提示 early EOF,后面追加"compression=-1" 或者 "postBuffer=524288000"
git clone git@address/git/xxx.git compression=-1

解决方式二:加大 https 缓存

shell 复制代码
git config https.postBuffer 524288000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
相关推荐
小钟不想敲代码13 小时前
GitFlow
git·gitflow
云和数据.ChenGuang19 小时前
git commit复合指令
大数据·git·elasticsearch
-拟墨画扇-1 天前
Git | 文件提交操作
git·gitee·github·gitcode
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2025-12-25)
git·ai·开源·llm·github
-拟墨画扇-1 天前
Git | 文件修改操作
大数据·git·gitee·github·gitcode
-拟墨画扇-1 天前
Git | 版本控制操作
大数据·git·gitee·github
GA6666661 天前
PowerWiki:基于 Git 的知识管理系统
git
-拟墨画扇-1 天前
Git | 状态查看操作
git·gitee·github·gitcode
码灵1 天前
Git相关软件常用操作
git
-拟墨画扇-1 天前
Git | 简介与安装
大数据·git·elasticsearch