git push时出现 RPC failed 的解决办法

      git push时出现 RPC failed 的解决办法无评论

通过git push命令提交代码时出现下列错误:

$ git push
Counting objects: 9292, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2136/2136), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (8222/8222), 1.27 MiB | 837 KiB/s, done.
Total 8222 (delta 6060), reused 8181 (delta 6033)
fatal: The remote end hung up unexpectedly
Everything up-to-date

通过如下方式解决(把git的buffer扩充到500M):

git config http.postBuffer 524288000

发表评论

电子邮件地址不会被公开。 必填项已用*标注