我尝试克隆这个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
Run Code Online (Sandbox Code Playgroud)
(我按了几次ENTER,所以Receiving objects: x%保留了消息).
我试过了,
git clone --depth = 1 https://git01.codeplex.com/typescript 克隆到' typescript '......
它从未表现出任何进展.我还有什么其他选择才能获得最新版本.(网站上有一个下载链接,但它不是git repo,所以我无法git pull更新)
谢谢
尝试运行以下命令:
git config pack.windowMemory 10m
git config pack.packSizeLimit 20m
Run Code Online (Sandbox Code Playgroud)
然后重试 git 克隆。
这可能是您的互联网连接,因为我能够成功克隆存储库。但无论如何,如果“手动”下载创建了一个与 git 存储库等效的目录结构,您可以简单地下载它并通过以下方式初始化存储库:
$ git 初始化
然后运行
$ git 远程添加原点https://git01.codeplex.com/typescript
将原始存储库添加为远程源。最后运行:
$ git 拉
从原始存储库中获取任何新数据。
您也可以选择简单地创建一个新的空存储库并执行上述步骤。但是,这将导致 git 再次为您下载数据,这可能会像以前一样再次中断。