gitgithubeofgit-clonegit-config

Error: "1824 bytes of body are still expected" while cloning repository from GitHub


I'm encountering an issue while trying to clone a Git repository from GitHub. When I run the git clone command, I consistently receive the following error message:

1824 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

I've tried several troubleshooting steps, including:

However, none of these solutions have resolved the issue. I'm not sure what else to try. Has anyone else encountered a similar problem? Any suggestions for further troubleshooting or resolution would be greatly appreciated.

Thank you in advance for your help!


Solution

  • Solution: Try both command

    git config --global http.postBuffer 52428800
    
    git config --global core.compression 0