GIT - 在克隆上出现“早期 eof”错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10589498/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 06:54:49  来源:igfitidea点击:

GIT - getting 'early eof' error on clone

git

提问by user6964

I have a error Early EOF's (Index-Pack Failed) when I try to clone a project from a repository git.

当我尝试从存储库 git 克隆项目时,出现了 Early EOF's (Index-Pack Failed) 错误。

But when I do a git-pullor git-pushfrom my localhost to the repository, I have no problems.
The error gives me the message that the repository is corrupt. It's weird.

但是当我从我的本地主机到存储库执行 a git-pullor时git-push,我没有问题。
该错误提示我存储库已损坏。有点奇怪。

What factors can cause such errors? Does the server, where is the repository, has low memory?

哪些因素会导致此类错误?存储库所在的服务器是否内存不足?

采纳答案by VonC

git clone fails with “index-pack” failed?will list the most common causes for this error.

git clone 因“index-pack”失败而失败?将列出此错误的最常见原因。

But note the current Cygwin version (if that is what you are using) has an issue with git when cloning over ssh.

但请注意,当前的 Cygwin 版本(如果这是您使用的版本)在通过 ssh 进行克隆时存在 git 问题

Depending on the server executing the git clone request, you also have issue when cloning over ssh via git protocol.

根据执行 git clone 请求的服务器,您在通过 git protocol 通过 ssh 进行克隆时也会遇到问题。