git Bitbucket 无法克隆存储库“致命:早期 EOF 致命:索引包失败”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39160277/
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
Bitbucket cannot clone repository "fatal: early EOF fatal: index-pack failed"
提问by PaladiN
I am trying to clone my repository using sshfrom bitbucketbut whenever i clone the repository i get:
我正在尝试使用sshfrom克隆我的存储库,bitbucket但是每当我克隆存储库时,我都会得到:
Connection to bitbucket.org closed by remote host.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
During cloning repositories of small sizeit gets cloned but when cloning bigger sizerepositories gives the error.
I also have tried this method:
在克隆small size它的存储库期间被克隆但是当克隆bigger size存储库时会出现错误。我也试过这个方法:
fatal: early EOF fatal: index-pack failed
but no luck. Could any one help with the issue?
但没有运气。任何人都可以帮助解决这个问题吗?
Note:
笔记:
Httpcloning works fine, but that doesn't work in my scenario. I need to clone using only ssh.
Http克隆工作正常,但这在我的场景中不起作用。我只需要使用ssh.
回答by Joel Estramil
I fix this issue running: "git fetch origin"
我修复了这个问题:“git fetch origin”
回答by Rodazzzz
git config --global http.postBuffer 157286400
git clone <repository>
回答by RASEL RANA
Run git config --global core.compression 9before git clone [email protected]:******/*******.git
运行git config --global core.compression 9之前git clone [email protected]:******/*******.git

