码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-08-06 11:24:07      阅读:421      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!