首页 > 其他 > 详细

Git Push错误“Error writing request body to server”

时间:2015-08-06 11:22:31      阅读:507      评论:0      收藏:0      [点我收藏+]
Google了一把,发现原来默认Git设置http post的缓存为1M,相关资料如下:
  1. https://bitbucket.org/marcinkuzminski/rhodecode/issue/495/git-repositories-much-bigger-when-hosted

  2. http://docs.webfaction.com/software/git.html

  3. https://openshift.redhat.com/community/kb/kb-e1035-git-push-throws-error-rpc-failed-result22-http-code-411

  4. http://stackoverflow.com/questions/2702731/git-fails-when-pushing-commit-to-github

解决方法:
增加http post缓存, 如果使用git命令,设置参数命令如下:
#增加为 500MB
git config http.postBuffer 524288000

如果使用的是Eclipse Git插件,则需要在 Window -> Preferences 中找到 Team -> Git -> Configuration 配置界面,在System Settings Tab页中 点击 “Add Entry…” 按钮来添加一个配置项:

key为: http.postBuffer
value为:524288000



Read more: http://blog.chengyunfeng.com/?p=488#ixzz3gW0N7W4W


Git Push错误“Error writing request body to server”

原文:http://my.oschina.net/u/1410320/blog/488501

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!