美文网首页
git push时出现 error:RPC failed 的解决

git push时出现 error:RPC failed 的解决

作者: burtliu | 来源:发表于2015-12-06 12:42 被阅读118次

使用git push 提交代码时出现以下错误提示:

error:RPC failed;result=22,httpcode=411

问题最可能的原因是git缓存容量过低,通过以下命令提高git的HTTP缓存即可:

//全局修改 扩容至2M
git config --global http.postBuffer 2M 

// 仅修改当前工程 扩容至500M
git config http.postBuffer 524288000

相关文章

网友评论

      本文标题:git push时出现 error:RPC failed 的解决

      本文链接:https://www.haomeiwen.com/subject/shxehttx.html