Error: RPC failed; result=22, HTTP code = 411

Error: RPC failed; result=22, HTTP code = 411

If you attempt to push a large set of changes to a Git repository with HTTP or HTTPS, you may get an error message such as error: RPC failed; result=22, HTTP code = 411. This is caused by a Git configuration default which limits certain HTTP operations to 1 megabyte. To override this limitation, update the postBuffer setting on your cloned repo.

try:

 1. Update git to the latest version (2.7.7, as to now), then,

 2.modify http.postBuffer: git config http.postBuffer 524288000 

posted @ 2011-10-20 11:40  英超  Views(3026)  Comments(0Edit  收藏  举报