gpt4 book ai didi

Git 克隆存储库错误 : RPC failed; result=56, HTTP 代码 = 200

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

我已经使用 Git 存储库几年了,但仍然感觉自己像个新手。非常欢迎帮助!

它开始克隆一段时间:

remote: Counting objects: 22394<br>
remote: Compressing objects: 100% (12314/12314)<br>
Receiving objects: 32% ....

错误:

error: RPC failed; result=56, HTTP code = 200<br>
fatal: The remote end hung up unexpectedly<br>
fatal: early EOF<br>
fatal: index-pack failed

git 命令:

git clone https://[username]:[password]@github.com/MegaWorldStudios/OmegatechV2.git "C:\OmegatechV2"

Git 版本:
1.9.4-preview20140929(今天从 git fellas 下载/更新)

我发现了诸如此类的问题,但没有一个答案能解决问题。

我也试过:
如类似帖子所述,将 postBuffer 设置得更高

git config http.postBuffer 524288000<br>
git config --global http.postBuffer 524288000

设置 --depth 1 并做一个浅克隆,我可以稍后 pull 其余部分

设置 --depth 2

error: RPC failed; result=18, HTTP code = 200
Cloning from a branch other than the main branch
Reinstalling the software and updating

这个可怕的错误是什么意思,修复/解决方法是什么?

提前致谢!

最佳答案

此错误是由于 Git 的 HTTPS 协议(protocol)引起的。要详细查看错误,您可以设置 GIT_CURL_VERBOSE 环境变量。例如:

$ GIT_CURL_VERBOSE=1 git pull

您的防病毒软件或防火墙可能正在修改传输中的 HTTP 数据包。参见 git clone failed due to antivirus例如。

最后,它可能是一个不可靠的网络连接。我正在使用连接到 Wifi 的 OSX 机器,当我切换到 LAN 连接时问题消失了。

关于Git 克隆存储库错误 : RPC failed; result=56, HTTP 代码 = 200,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26197171/

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