fatal: early EOF fatal: index-pack failed

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

    I tried pretty much all the suggestions made here but none worked. For us the issue was temperamental and became worse and worse the larger the repos became (on our Jenkins Windows build slave).

    It ended up being the version of ssh being used by git. Git was configured to use some version of Open SSH, specified in the users .gitconfig file via the core.sshCommand variable. Removing that line fixed it. I believe this is because Windows now ships with a more reliable / compatible version of SSH which gets used by default.

    0 讨论(0)
  • 2020-11-22 11:28

    I turned off all the downloads I was doing in the meantime, which freed some space probably and cleared up/down bandwidth

    0 讨论(0)
  • 2020-11-22 11:29

    I have tried for several times after I set git buffer, as I mentioned in the question, it seems work now.

    So if you met this error, run this command:

    git config --global http.postBuffer 2M
    

    and then try again for some times.

    Reference:

    git push error: RPC failed; result=56, HTTP code = 0

    0 讨论(0)
  • 2020-11-22 11:30

    finally solved by git config --global core.compression 9

    From a BitBucket issue thread:

    I tried almost five times, and it still happen.

    Then I tried to use better compression and it worked!

    git config --global core.compression 9

    From the Git Documentation:

    core.compression
    An integer -1..9, indicating a default compression level. -1 is the zlib default.
    0 means no compression, and 1..9 are various speed/size tradeoffs, 9 being slowest.
    If set, this provides a default to other compression variables, such as core.looseCompression and pack.compression.

    0 讨论(0)
  • 2020-11-22 11:30

    I was getting the same error, on my side i resolved by running this command, In windows it has some memory issue.

    git config --global pack.windowsMemory 256m
    
    0 讨论(0)
  • 2020-11-22 11:31

    In my case nothing worked when the protocol was https, then I switched to ssh, and ensured, I pulled the repo from last commit and not entire history, and also specific branch. This helped me:

    git clone --depth 1 "ssh:.git" --branch “specific_branch”

    0 讨论(0)
提交回复
热议问题