Git错误及解决方案
错误一
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 25470 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
解决方案
解决方案来源:https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed
首先,关闭压缩:
git config --global core.compression 0
接下来,让我们进行部分克隆以截断下载的信息量:
git clone --depth 1 <repo_URI>
如果是拉取,就部分拉取以截断下载的信息量:
git pull --depth 1
当上一步成功时,进入新目录并克隆/拉取其余部分:
git fetch --unshallow
或者
git fetch --depth=2147483647
然后就可以进行常规拉取了
git pull --all
错误二
[13:18:18]error: RPC failed; curl 56 Failure when receiving data from the peer
[13:18:18]fetch-pack: unexpected disconnect while reading sideband packet
[13:18:18]fatal: early EOF
[13:18:18]fatal: fetch-pack: invalid index-pack output
[13:18:18]完成: git -c credential.helper= clone --recursive --progress -- http://nas-gxxxxxxInfo.git M:\XX\XXXX
8.079s
[13:18:18]warning: redirecting to https://XX/XXX/XXX.git/
[13:18:18]fatal: early EOF
[13:18:18]fatal: fetch-pack: invalid index-pack output
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 程序员小航
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果