Git Connection Errors During Cloning
I got these errors recently when I was trying to clone one of our repos. Unstable network connection or network infrastructure may have caused this so as a workaround, you can clone the repo “bit-by-bit”.
$ git clone ssh://git@your.host.com/yourrepo.git Cloning into 'projectdir'... ... remote: Enumerating objects: 26639, done. remote: Counting objects: 100% (269/269), done. remote: Compressing objects: 100% (152/152), done. client_loop: send disconnect: Connection reset by peer6 MiB/s fetch-pack: unexpected disconnect while reading sideband packet fatal: fetch-pack: invalid index-pack output $ git clone ssh://git@your.