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

来源:互联网 发布:bt下载端口阻塞 编辑:程序博客网 时间:2024/06/01 07:19
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 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 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)


阅读全文
0 0
原创粉丝点击