Git: error: RPC failed; result=22, HTTP code = 411

Here is what helped, the following command increases git buffer to 500mb:

git config http.postBuffer 524288000