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

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


转载于:https://my.oschina.net/chaun/blog/481460

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值