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


你可能感兴趣的:(Git Push错误“Error writing request body to server”)