每次尝试克隆新存储库时,我都会收到此错误,第二次克隆它时,它工作正常。可能是什么原因以及如何解决?
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
我在我的 Android 工作室中遇到了类似的错误消息,我通过使用我的移动数据克隆应用程序解决了这个问题,它运行得很好。
我也遇到了这个错误:所以我使用下面的命令部分克隆存储库:
git clone --depth 1 <repo url>
git fetch --unshallow
如果问题仍然存在,我建议您关闭防病毒软件并重试该步骤。