git: fatal: index-pack failed



我尝试克隆这个repo几次,但得到相同的错误。是因为它太大了,而我的网络很慢吗?

$ git clone https://git01.codeplex.com/typescript
Cloning into 'typescript'...
remote: Counting objects: 408886, done.
remote: Compressing objects: 100% (32748/32748), done.
Receiving objects:   4% (20335/408886), 63.88 MiB | 250.00 KiB/s   
Receiving objects:   8% (33984/408886), 80.64 MiB | 307.00 KiB/s   
Receiving objects:  19% (79636/408886), 143.34 MiB | 253.00 KiB/s   
Receiving objects:  37% (154937/408886), 267.23 MiB | 329.00 KiB/s   
Receiving objects:  45% (187088/408886), 353.31 MiB | 387.00 KiB/s   
Receiving objects:  53% (218438/408886), 477.12 MiB | 299.00 KiB/s   
fatal: The remote end hung up unexpectedly47.67 MiB | 367.00 KiB/s   
fatal: early EOF
fatal: index-pack failed

(我按ENTER几次,所以消息Receiving objects: x%被保留)。

I tried,

git clone——depth=1 https://git01.codeplex.com/typescript克隆为'typescript'…

它从未显示任何进展。还有别的选择吗,我只能买最新的版本了。(网站上有一个下载链接,但不是git的repo,所以我不能git pull更新)

谢谢

尝试运行以下命令:

git config pack.windowMemory 10m 
git config pack.packSizeLimit 20m

可能是你的互联网连接,因为我能够成功克隆存储库。但是无论如何,如果"手动"下载创建了一个相当于git存储库的目录结构,你可以简单地下载它并在那里初始化存储库:

$ git init

然后运行

$ git remote add origin https://git01.codeplex.com/typescript

将原始存储库添加为远程源。最后运行:

$ git pull

从原始存储库中获取新数据。

您可以选择简单地创建一个新的空存储库,并执行上述步骤。但是,这将导致git再次为您下载数据,它可能会像以前一样再次中断。

首先尝试高速连接。对于共享带宽,尝试在负载较少时进行克隆。如果仍然不工作,

请使用下面的命令,

git config --global pack.windowMemory 256m 
git config --global pack.packSizeLimit 256m
git config --global http.postBuffer 1024M
git config --global http.maxRequestBuffer 512M
git config --global core.compression 9

并尝试再次克隆

相关内容

最新更新