Skip to main content
← blog / git
Dec 28, 2012  ·  #git  ·  1 min read

Git RPC Failed; result = 22; HTTP 411

Apparently by default git has a limit for max upload files. We build our test sites locally, push to git and then deploy to a beta site. That means there can be a bit of data being transferred, especially in a site with PDFs. If you over do it on that buffer in git you'll receive a RPC Failed; result=22; HTTP 411 / fatal: The remote hung up unexpectedly. Change your git config with this line (500MB): git config http.postBuffer 524288000
Thanks for reading

I write about Drupal, PHP, and the quiet infrastructure behind large sites — caching, config, and testing. New posts land every week or two.