I will be honest, I know very little about the internals of git.
I have staged and commit a 40mb directory, but when I come to push...
$ git push --v
With Git 2.13 (Q2 2017), you will be able to set http.postBuffer to a really large number (i.e, larger than ulong on some platforms).
See commit 37ee680 (11 Apr 2017) by David Turner (csusbdt).
(Merged by Junio C Hamano -- gitster -- in commit 4c01f67, 24 Apr 2017)
http.postbuffer: allow full range ofssize_tvaluesUnfortunately, in order to push some large repos where a server does not support chunked encoding, the
http postbuffermust sometimes exceed two gigabytes.
On a 64-bit system, this is OK: we just malloc a larger buffer.This means that we need to use CURLOPT_POSTFIELDSIZE_LARGE to set the buffer size.