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

  • Try these also,

    Clear Git Cache:

    Run the git config --global --unset http.sslVerify command to clear the Git cache and re-establish a clean connection.

    Reduce Packet Size:

    Try reducing the packet size using git config pack.windowSize 1024

    Disable Compression:

    git config --global core.compression 0