首页 /  技术专区  /  Git 宽屏模式 >

git报错the remote end hung up unexpectedlyMiB解决方法

git下载一半报错the remote end hung up unexpectedlyMiB

fatal: the remote end hung up unexpectedlyMiB | 8.00 KiB/s
fatal: early EOF
fatal: index-pack failed

解决办法,修改git配置

//httpBuffer加大
git config --global http.postBuffer 524288000

//压缩配置
git config --global core.compression -1

//修改配置文件
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1

我是只执行了第一条,加大了httpBuffer就解决了问题。



头像
0/200
图片验证码