英文:
When there are fatal git clone errors, fetch-pack invalid index-pack output is produced
问题
我创建了一个新的ec2实例,但是当我尝试在html文件夹中克隆git网址时,出现以下错误:
pack-reused 3,
fatal: fetch-pack: 无效的index-pack输出
克隆git网址未创建项目文件夹
我尝试了以下替代方法:
git config --global core.compression 0
git clone --depth 1 <git网址>
显示项目文件夹
git fetch --unshallow
输出:未获取远程源
git pull origin branch
失败错误:fetch-pack无效的index-pack
git config pack.packSizeLimit 20m
相同的输出错误fetch-pack无效的index-pack
英文:
I created a new ec2 instance, however
when I try to clone a git url in html folder
following error is shown:
pack-reused 3 ,
fatal: **fetch-pack**: invalid index-pack output
**clone git url not created project folder **
I tried following alternatives:
git config --global core.compression 0
git clone --depth 1 < git url >
shown project folder
git fetch --unshallow
output: not fetched remote origin
git pull origin branch
failed error : fetch-pack invalid index-pack
git config pack.packSizeLimit 20m
same output error fetch-pack invalid index-pack
答案1
得分: 1
它取决于您的ec2 T3实例。
正如**Dan Langille**所指出的
> 这个实例类型,t3.small
,无法克隆git仓库。
>
> 接收对象: 100% (4907825/4907825), 1.13 GiB | 13.65 MiB/s, 完成。
> 致命错误: fetch-pack: 无效的index-pack输出
>
> 我似乎记得在早期尝试其他仓库时遇到过这个问题。
我会尝试4GB RAM
的t3.medium
。
>
> 成功。
> 看来git clone
的最低级别是t3.medium
。
英文:
It depends on your ec2 T3 instance.
As noted by Dan Langille
> This instance type, t3.small
, cannot clone the git repo.
>
> Receiving objects: 100% (4907825/4907825), 1.13 GiB | 13.65 MiB/s, done.
> fatal: fetch-pack: invalid index-pack output
>
> I seem to recall this problem from earlier attempts with other repos.
I'll try t3.medium
with 4GB RAM.
>
> Success.
> It seems the minimum level for git clone
is t3.medium
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论