Skip to content

Instantly share code, notes, and snippets.

@milabs
Created February 14, 2014 13:47
Show Gist options
  • Save milabs/9001250 to your computer and use it in GitHub Desktop.
Save milabs/9001250 to your computer and use it in GitHub Desktop.
Git fails when pushing commit to github
Q: Git fails when pushing commit to github
A: git config --global http.postBuffer 524288000
$ man git config
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment