fatal: early EOF fatal: index-pack failed

后端 未结 30 1572
滥情空心
滥情空心 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:37

    First, turn off compression:

    git config --global core.compression 0
    

    Next, let's do a partial clone to truncate the amount of info coming down:

    git clone --depth 1 
    

    When that works, go into the new directory and retrieve the rest of the clone:

    git fetch --unshallow 
    

    or, alternately,

    git fetch --depth=2147483647
    

    Now, do a regular pull:

    git pull --all
    

    I think there is a glitch with msysgit in the 1.8.x versions that exacerbates these symptoms, so another option is to try with an earlier version of git (<= 1.8.3, I think).

提交回复
热议问题