git克隆错误错误:RPC失败; curl 92 HTTP/2 流 7 在底层流结束之前没有完全关闭

问题描述 投票:0回答:2

每次尝试克隆新存储库时,我都会收到此错误,第二次克隆它时,它工作正常。可能是什么原因以及如何解决?

Cloning into 'Important-Documents'...
remote: Enumerating objects: 83, done.
remote: Counting objects: 100% (83/83), done.
remote: Compressing objects: 100% (81/81), done.
error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly before end of the underlying stream
error: 4241 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

git github windows-10
2个回答
1
投票

我在我的 Android 工作室中遇到了类似的错误消息,我通过使用我的移动数据克隆应用程序解决了这个问题,它运行得很好。


0
投票

我也遇到了这个错误:所以我使用下面的命令部分克隆存储库:

  1. 在终端或powershell中输入此命令
    git clone --depth 1 <repo url>
  2. 第 1 步完成后,将目录更改为 和
  3. 输入此命令
    git fetch --unshallow

如果问题仍然存在,我建议您关闭防病毒软件并重试该步骤。

© www.soinside.com 2019 - 2024. All rights reserved.