git bash中的git pull thrown错误“index-pack failed”

时间:2013-09-02 04:22:02

标签: git github

以前我可以从这个存储库中提取,但最近我收到了这个错误

machine@bj ~/Desktop/rails-master (master)
$ git remote add origin https://github.com/rails/rails

 machine@bj ~/Desktop/rails-master (master)
 $ git pull origin master
 remote: Counting objects: 325661, done.
 remote: Compressing objects: 100% (86702/86702), done.
 effatal: early EOF  30% (97699/325661), 17.14 MiB | 861.00 KiB/s
 error: RPC failed; result=18, HTTP code = 200
 fatal: The remote end hung up unexpectedly
 fatal: index-pack failed

我在谷歌和其他地方搜索过但没有得到任何合适的帮助

请建议我...... 任何形式的帮助都会很明显......

谢谢

1 个答案:

答案 0 :(得分:1)

在Windows上,我可以毫无问题地克隆回购:

C:\Documents and Settings\VonC\prog\git>git clone https://github.com/rails/rails
Cloning into 'rails'...
remote: Counting objects: 381705, done.
remote: Compressing objects: 100% (96211/96211), done.
remote: Total 381705 (delta 293367), reused 368694 (delta 282130)
Receiving objects: 100% (381705/381705), 57.17 MiB | 587.00 KiB/s, done.
Resolving deltas: 100% (293367/293367), done.
Checking out files: 100% (2715/2715), done.

在Linux上,它似乎也有效,除了最后:

[ VonC,vonc@laposte.net for github.com ]
Cloning into 'rails'...
remote: Counting objects: 381705, done.
remote: Compressing objects: 100% (96211/96211), done.
remote: Total 381705 (delta 293367), reused 368694 (delta 282130)
Receiving objects: 100% (381705/381705), 57.17 MiB | 655.00 KiB/s, done.
Resolving deltas: 100% (293367/293367), done.
Checking connectivity... done
error: git-remote-https died of signal 13

所以试着:

  • 将其克隆到新文件夹中以检查其是否更好
  • 确保使用最新的git版本