git push时出现error: RPC failed; result=22, HTTP code = 411的问题

来源:互联网 发布:东南大学网络 编辑:程序博客网 时间:2024/05/16 16:23

在用git 向github提交代码时出现:

error: RPC failed; result=22, HTTP code = 411fatal: The remote end hung up unexpectedly

经过测试发现,可能是push的文件大小超过了http post默认的大小,因此我们只需执行如下代码就可以。

在进入项目的根目录,运行下面的命令

   git config http.postBuffer 524288000


 

0 0
原创粉丝点击