fatal: early EOF fatal: index-pack failed

后端 未结 30 1578
滥情空心
滥情空心 2020-11-22 10:51

I have googled and found many solutions but none work for me.

I am trying to clone from one machine by connecting to the remote server which is in the LAN network.

30条回答
  •  执念已碎
    2020-11-22 11:46

    I have the same problem. Following the first step above i was able to clone, but I cannot do anything else. Can't fetch, pull or checkout old branches.

    Each command runs much slower than usual, then dies after compressing the objects.

    I:\dev [master +0 ~6 -0]> git fetch --unshallow
    remote: Counting objects: 645483, done.
    remote: Compressing objects: 100% (136865/136865), done.
    
    error: RPC failed; result=18, HTTP code = 20082 MiB | 6.26 MiB/s
    
    fatal: early EOF
    
    fatal: The remote end hung up unexpectedly
    
    fatal: index-pack failed
    

    This also happens when your ref's are using too much memory. Pruning the memory fixed this for me. Just add a limit to what you fetching like so ->

    git fetch --depth=100
    

    This will fetch the files but with the last 100 edits in their histories. After this, you can do any command just fine and at normal speed.

提交回复
热议问题