gpt4 book ai didi

git - 错误 : RPC failed; curl transfer closed with outstanding read data remaining

转载 作者:IT王子 更新时间:2023-10-29 01:25:53 26 4
gpt4 key购买 nike

当我尝试从 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

然后克隆被中止。我怎样才能避免这种情况?

最佳答案

这种情况经常发生,我的互联网连接速度很慢,我必须克隆一个相当大的 git 存储库。最常见的问题是连接关闭并且整个克隆被取消。

Cloning into 'large-repository'...
remote: Counting objects: 20248, done.
remote: Compressing objects: 100% (10204/10204), 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

经过大量的试验和错误以及大量的“远程端意外挂断”之后,我找到了一种适合我的方法。这个想法是先做一个浅克隆,然后用它的历史更新存储库。

$ git clone http://github.com/large-repository --depth 1
$ cd large-repository
$ git fetch --unshallow

关于git - 错误 : RPC failed; curl transfer closed with outstanding read data remaining,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38618885/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com