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

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

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的传输字节限制~bash

$ git config http.postBuffer  524288000
相关文章
相关标签/搜索