当我尝试从 GitLab (GitLab 6.6.2 4ef8369) 克隆存储库时遇到此错误:
remote: Counting objects: 66352, done. remote: Compressing objects: 100% (10417/10417), done. error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
然后克隆被中止。我怎样才能避免这种情况?
几天后,今天我刚刚解决了这个问题。生成 ssh 密钥,按照这篇文章:
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to- the-ssh-agent/
声明为
然后通过命令克隆:
git clone username@mydomain.com:my_group/my_repository.git
并且没有错误发生。
上述问题
错误:RPC 失败;curl 18 传输已关闭,剩余未完成的读取数据
因为通过 HTTP 协议(curl命令)克隆时出错。
curl
而且,您应该增加缓冲区大小:
git config --global http.postBuffer 524288000