When trying to push to a git repository, always received a 999 error.

1

There are 1 best solutions below

1
On

After several hours of seeking found the solution and want to share it if anybody else comes with this problem.

The solution is that git is not happy with files larger than 1Mb. To change this, to go to the .git folder and edit the config file and add the size constrains:

[http]
postBuffer = 2048M
maxRequestBuffer = 1024M
[ssh]
postBuffer = 2048M
maxRequestBuffer = 1024M
[pack]
windowMemory = 256m
packSizeLimit = 256m