git-push-RPC-failed-result22-HTTP-code-411

git push时出现的错误:RPC failed; result=22, HTTP code = 411    fatal: The remote end hung up unexpectedly

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

查了一下就是由于原因:默认 Git 设置 http post 的缓存为 1MB,上述代码将其设置为 500MB~

这样的话首先改一下Git的传输字节限制~

$ git config http.postBuffer  524288000

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理