git push error: RPC failed; result=22, HTTP code = 411

来源:互联网 发布:电脑桌面美化软件 编辑:程序博客网 时间:2024/05/17 02:43

在利用bae搭建wordpress的时候,push代码出现了报错信息,如下:

error: RPC failed; result=22, HTTP code = 411fatal: The remote end hung up unexpectedlyWriting objects: 100% (1314/1314), 6.43 MiB | 4.62 MiB/s, done.Total 1314 (delta 107), reused 0 (delta 0)fatal: The remote end hung up unexpectedly

后来在网山看到了解决办法,一句话:

git config http.postBuffer 524288000

原因是因为push的文件太大,把push的限制改成500M就没问题了,再大的东西也能push上去了。

0 0