Skip to main content

Git RPC Failed; result = 22; HTTP 411

Published on
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

I'm available for one-on-one consulting calls – click here to book a meeting with me 🗓️

#