git clone 或者是vscode clone 时遇到the remote end hung up unexpectedly

复制代码
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

使用git clone总是报错

查看原因有三种可能:要么是缓存不够,要么是网络不行,要么墙的原因。

如果是网络不行,可以配置git的最低速度和最低速度时间:

复制代码
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

【补充】文件太大的解决方法:

当clone或者push git项目时,文件太大也会出现fatal: The remote end hung up unexpectedly

此时需要修改.gitconfig配置文件,打开终端,执行指令:

git config http.postBuffer 524288000

将postBuffer的缓存设置为500M即可。

参考 https://blog.csdn.net/Cai_deLong/article/details/115255735

相关推荐
好悬给我拽开线1 小时前
RoboTTT
ide·vscode·编辑器
微尘寒风2 小时前
git创建版本库
git
2601_962294612 小时前
Python工具软件开发:借助InsCode AI IDE开启智能编程新时代
ide·python·ai·开发工具·智能化编程
console.log('npc')12 小时前
Git 冲突与 AI 协助指南
前端·人工智能·git·大模型
重生之我来学Python20 小时前
Git-SVN 混合开发,从入门到精通!
开发语言·git·svn·github
心平气和量大福大20 小时前
android studio(AS)工具-调试-统计总行数
android·ide·android studio
笨笨饿1 天前
#137_死机恢复现场_Armino平台AP系统swd调试
git·python·stm32·单片机·嵌入式硬件·物联网·vim
King of fraud1 天前
Git 入门:从零开始的版本控制之旅
git
AI大模型-小华1 天前
Codex CLI第一次怎么用?从安装到读取本地项目完整教程
git·node.js·ai编程·开发工具·代码分析·codex·codex cli
2401_861678621 天前
Git 在 Windows 使用
windows·git·elasticsearch