Google, found that the original default Git settings http Post cache is 1M, the relevant information is as follows:
https://bitbucket.org/marcinkuzminski/rhodecode/issue/495/git-repositories-much-bigger-when-hosted
Http://docs.webfaction.com/software/git.html
https://openshift.redhat.com/community/kb/kb-e1035-git-push-throws-error-rpc-failed-result22-http-code-411
Http://stackoverflow.com/questions/2702731/git-fails-when-pushing-commit-to-github
Workaround: Increase the HTTP POST cache, and if you use the GIT command, set the parameters command as follows:
#增加为 500MBgit config Http.postbuffer 524288000
If you are using the Eclipse git plugin, you will need to find the Team---Git configuration interface in Windows---Preferences, and click "A" in the System Settings tab page. DD Entry ... " button to add a configuration item:
Key: Http.postbuffervalue is: 524288000
Read more:http://blog.chengyunfeng.com/?p=488#ixzz3gw0n7w4w
Git Push Error "error writing request body to server"