无法在git上克隆大型仓库代码 [英] Not able to clone large repo code on git

查看:195
本文介绍了无法在git上克隆大型仓库代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到类似:-

Cloning into 'large-repository'...
remote: Counting objects: 20248, done.
remote: Compressing objects: 100% (10204/10204), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining 
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

推荐答案

git config --global http.postBuffer 524288000

git clone repo_url --depth 1

我已经按照上述步骤操作,最后我成功地克隆了我的代码.

I have followed above steps and finally I have successfully cloned my code.

这篇关于无法在git上克隆大型仓库代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆