解决Git 克隆代码 The remote end hung up unexpectedly错误

在办公时,使用git clone总是报错,通常是一下三种情况造成的:

一、修改提交缓存大小

建议修改为500m
git config --global http.postBuffer 524288000

也可以改成更高的:
git config --global http.postBuffer 1048576000

二、配置git的最低速度和最低速度时间:

git config --global http.lowSpeedLimit 0

git config --global http.lowSpeedTime 999999  单位 秒

三、换个翻墙节点或工具

也有可能是网速太慢导致的,建议大家可以多换换试试

猜你喜欢

转载自blog.csdn.net/xmbcc777/article/details/130627222