Git Clone Fails - fatal: The remote end hung up unexpectedly. fatal: early EOF fatal: index-pack failed

前端 未结 2 717
醉话见心
醉话见心 2020-12-18 15:41

My computer has proper configuration SSH, I got this error when trying to clone the repository:

I run this command to clone the repository

git clone          


        
相关标签:
2条回答
  • 2020-12-18 16:10

    You may do that once for all using the git config command:

    git config --global http.postBuffer 100000000
    
    0 讨论(0)
  • 2020-12-18 16:18

    If you have an alternative option to clone on http, run any of the below commands in gitbash and try to clone the repository, it should work.

    1. git config --global http.postBuffer 524288000
    2. git config --global http.postBuffer 1048576000

    And, if you don't have the option of http and want to proceed with ssh. You can configure SSH keepAlive either on the client or server.

    Configure on server
    Edit

    ~/.ssh/config  
    ServerAliveInterval 60
    ServerAliveCountMax 5
    

    Configure on client Edit on /etc/ssh/sshd_config

    ClientAliveInterval 60
    ClientAliveCountMax 5
    

    e.g.

    echo 'ClientAliveInterval 60' | sudo tee --append /etc/ssh/sshd_config
    

    EDIT: git config --global ssh.postBuffer 1048576000

    Try increasing the buffer, i face the same probelm in my repository.

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