The remote end hung up unexpectedly while git cloning

后端 未结 30 2589
旧时难觅i
旧时难觅i 2020-11-22 09:02

My git client repeatedly fails with the following error after trying to clone the repository for some time.

What could be the issue here?

30条回答
  •  北海茫月
    2020-11-22 09:40

    For shared bandwidth try to clone when load is less. Otherwise, try with a high speed connection. If still does not work, please use below command,

    git config --global http.postBuffer 2048M
    git config --global http.maxRequestBuffer 1024M
    git config --global core.compression 9
    
    git config --global ssh.postBuffer 2048M
    git config --global ssh.maxRequestBuffer 1024M
    
    git config --global pack.windowMemory 256m 
    git config --global pack.packSizeLimit 256m
    

    And try to clone again. You might need to change those settings according to your available memory size.

提交回复
热议问题