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

相关推荐
rebekk2 小时前
claude工作区与git仓库的关系
linux·git·python
银河系的一束光2 小时前
使用 IntelliJ IDEA 开发 Java 程序时 , 会遇到以下中文乱码问题 :
java·ide·intellij-idea
神の愛2 小时前
GIT,可以参数这篇,需要加以理解,文字比较冗余,还请见谅
git
小宋加油啊2 小时前
Mac vscode安装PCL
ide·vscode·macos
jolimark3 小时前
Windows下如何用GCC编译C语言?轻便方法分享
c语言·windows·git·mingw·gcc编译器
△曉風殘月〆3 小时前
一文带你掌握Visual Studio中集成的git功能
git·visual studio
xiaotao1313 小时前
阶段零:IDE选择 与 Jupyter Notebook / Lab 使用
ide·人工智能·python·jupyter
꯭爿꯭巎꯭3 小时前
visual studio code (vscode)下载
ide·vscode·编辑器
范什么特西4 小时前
MyEclipse8.5配置
java·ide·myeclipse
Thomas21434 小时前
skill分享 iterm2 jupyter jumpserver
ide·python·jupyter