The remote end hung up unexpectedly

by sisccr

Sometimes, we faced an annoying problem like this one while trying to clone my BitBucket Repo.

 git clone
  Cloning into 'veda-ios'...
  remote: Counting objects: 1688, done.
  remote: Compressing objects: 100% (1272/1272), done.
  Connection to closed by remote host.00 KiB/s
  fatal: The remote end hung up unexpectedly
  fatal: early EOF
  fatal: index-pack failed

Tried increasing the postBuffer size as suggested in different stack overFlow answers. But it did not work out for me. After some research, I found the solution.

  git config --global core.compression 9

changing the compression quality  did the trick. Hmm.. ??