git clone is aborting due to possible repository corruption on the remote side even though memory settings are done properly

It worked , I set the same config in remote side as well. it worked now..

git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m" 
git config --global pack.threads "1"
git config --global pack.window "0"

I met the same problem. After trying all solutions, it still exists. After compare the config to another repository, I found this config works:

git config core.bigfilethreshold 200K

I think it is because there is a large sql backup file backup.sql(size: 305M), git tryied to analysis it as a text file and see the difference.
After using git config core.bigfilethreshold 200K git will not store it deflated nor trying to compress it.

So if configurations like pack.windowMemory, pack.SizeLimit didn't work for you, try using
git config core.bigfilethreshold 200K.

Tags:

Git

Github