您的位置:首页 > 理论基础 > 计算机网络

error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required

2017-06-01 09:34 1811 查看
error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required
直接粘stack overflow 解决办法:

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 a
4000
s 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 change this limit run within your local repository

git config http.postBuffer *bytes*

where bytes is the maximum number of bytes permitted. For exmaple:

git config http.postBuffer 524288000

For 500MB (thanks @Hengjie)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐