Hi, I am getting this below error and tried multiple solutions, but they didn't work for me. Can any one help me on this ?
git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks clone --branch master git@git.ng.bluemix.net:**********/wcs9.git C:\wcs9
Cloning into 'C:\wcs9'...
FATAL ERROR: Server unexpectedly closed network connection
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
Completed with errors, see above.
Thanks inadvance!
I would focus on how Git handles SSH packet sizes and keepalive intervals during long cloning operations over a slower remote host. The FATAL ERROR: Server unexpectedly closed network connection message regularly occurs when the server times out during a massive, quiet data transfer or drops packets that exceed the standard MTU size.
git config --global core.compression 0git config --global http.postBuffer 524288000 to expand your packet overhead threshold.Host *ServerAliveInterval 30ServerAliveCountMax 100 to actively force your SSH connection to exchange stay-alive pings every thirty seconds.If your repository is too large for a single network pull. I would work around it by running a shallow clone command like "git clone --depth 1 ..."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.