git无法提交出错的问题22,411,413

来源:互联网 发布:成都网络维护培训学校 编辑:程序博客网 时间:2024/05/19 05:06

[notes]git push的时候提示“error: RPC failed; result=22, HTTP code = 411”

解决方法:


git config http.postBuffer 524288000


原因:


用http或者https方式提交git里大批量的数据更改时,你可能会遇到这样的错误: “RPC failed; result=22, HTTP code = 411” ,那是因为Git默认设置最大的HTTP传输量为1MB。


可以通过: 

git config http.postBuffer *bytes*

来修改可传输字节最大值


参考: 

http://stackoverflow.com/questions/12651749/git-push-fails-rpc-failed-result-22-http-code-411 

原创粉丝点击