当发生致命的git克隆错误时,会产生fetch-pack无效的index-pack输出。

huangapple go评论61阅读模式
英文:

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 &lt; git url &gt;

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 RAMt3.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.

huangapple
  • 本文由 发表于 2023年2月16日 18:54:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75471232.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定