Git异常The remote end hung up unexpectedly解决方案

限于喜欢 提交于 2020-11-19 20:27:48

场景

        $ git clone https://github.com/shimat/opencvsharp.git
Cloning into 'opencvsharp'...
remote: Enumerating objects: 135, done.
remote: Counting objects: 100% (135/135), done.
remote: Compressing objects: 100% (90/90), done.
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed








解决方案

            公司网络慢因此设置git配置参数,否则因此超时退出

$ git config --global http.lowSpeedLimit 0

$ git config --global http.lowSpeedTime 999999

$ git config --global http.postBuffer 5242880

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!