GIT使用笔记

1、git提交错误

在用git 向github提交代码时出现:

error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly

可能是push的文件大小超过了http post默认的大小,因此我们只需执行如下代码就可以

#git config http.postBuffer 524288000
#第一句可能找不到变量,用第二句
git config --global http.postBuffer 52428800

 

参考:

[1] http://stackoverflow.com/questions/12651749/git-push-fails-rpc-failed-result-22-http-code-411

[2] http://stackoverflow.com/questions/16557071/git-error-rpc-failed-result-22-http-code-411

[3] http://www.haogongju.net/art/520578

[4] http://www.drovik.com/html/9206342025.html

[5] http://blog.csdn.net/passion_wu128/article/details/8234901

posted @ 2013-09-27 10:36  长城的草  阅读(156)  评论(0编辑  收藏  举报