错误:RPC失败;卷曲传送关闭,剩余未完成的读取数据 [英] error: RPC failed; curl transfer closed with outstanding read data remaining
问题描述
我尝试从GitLab(GitLab 6.6.2 4ef8369)克隆一个存储库,并报错:
remote:计数对象:66352,done。
remote:压缩对象:100%(10417/10417),完成。
错误:RPC失败; curl 18传输关闭,未完成读取数据剩余
致命:远程端意外挂起
致命:早期EOF
致命:索引包失败
如何避免此错误?
几天后,今天我刚刚解决了这个问题。生成ssh密钥,按照这篇文章:
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-代理/
声明它到
- Git提供程序(GitLab我使用的是GitHub)。
- 将此添加到本地身份。
然后克隆通过命令:
git clone username@mydomain.com:my_group / my_repository.git
没有错误发生。
上述问题
错误:RPC失败; curl 18 transfer with outstanding read data
remaining
因为在通过HTTP协议克隆时发生错误(
curl
命令)。
而且,您应该增加缓冲区大小:
git config --global http.postBuffer 524288000
I try to clone a repository from GitLab (GitLab 6.6.2 4ef8369) and error:
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
How to avoid this error?
解决方案After few days, today I just resolved this problem. Generate ssh key, follow this article:
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
Declare it to
- Git provider (GitLab what I am using, GitHub).
- Add this to local identity.
Then clone by command:
git clone username@mydomain.com:my_group/my_repository.git
And no error happen.
The above problem
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
because have error when clone by HTTP protocol (
curl
command).And, you should increment buffer size:
git config --global http.postBuffer 524288000
这篇关于错误:RPC失败;卷曲传送关闭,剩余未完成的读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!