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

pix*_*ght 19 git github repository

我已经使用了几年的Git存储库,但仍然感觉像是一个新的..帮助是最受欢迎的!

它开始克隆一段时间:

remote: Counting objects: 22394<br>
remote: Compressing objects: 100% (12314/12314)<br>
Receiving objects: 32% ....
Run Code Online (Sandbox Code Playgroud)

错误:

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
Run Code Online (Sandbox Code Playgroud)

git命令:

git clone https://[username]:[password]@github.com/MegaWorldStudios/OmegatechV2.git "C:\OmegatechV2"
Run Code Online (Sandbox Code Playgroud)

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

我找到了这样的问题,但没有一个答案解决了这个问题.

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

git config http.postBuffer 524288000<br>
git config --global http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)

设置--depth 1并做一个浅层克隆,我可以稍后完成剩下的工作

设置 - 深度2

error: RPC failed; result=18, HTTP code = 200
Cloning from a branch other than the main branch
Reinstalling the software and updating
Run Code Online (Sandbox Code Playgroud)

这种恶意错误意味着什么,修复/解决方法是什么?

非常感谢提前!

Han*_*xue 15

由于Git的HTTPS协议,会发生此错误.要详细查看错误,可以设置GIT_CURL_VERBOSE环境变量.例如:

$ GIT_CURL_VERBOSE=1 git pull
Run Code Online (Sandbox Code Playgroud)

您的防病毒或防火墙可能正在修改传输中的HTTP数据包.例如,请参阅由于防病毒而导致的git clone失败.

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