I, too, got this recently, and @shiminsh's solution "Worked for me", gazing at the documentation {well looking at the output from man git-config
} we have:
http.postBuffer
Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.
I do wonder, though, if a limit of around 0.5 GBytes might be a bit much the other way...! I am using Git version 1.7.10.4 on a Debian Wheezy Linux platform but I doubt that is that relevant to this issue. What this setting is basically saying is "for pretty much anything you send to the remote system use HTTP/1.1 and Transfer-Encoding: Chunked and don't worry about creating a massive pack file locally".