`

[转] 使用git error: RPC failed; result=22, HTTP code = 411

    博客分类:
  • git
 
阅读更多

使用git提交比较大的文件的时候可能会出现这个错误

 

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

 

这样的话首先改一下git的传输字节限制

 

git config http.postBuffer  524288000

 

然后这时候在传输或许会出现另一个错误

 

error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

 

这两个错误看上去相似,一个是411,一个是413

 

下面这个错误添加一下密钥就可以了

首先key-keygen 生成密钥

然后把生成的密钥复制到git中自己的账号下的相应位置

git push ssh://192.168.64.250/eccp.git  branch

 

这就可以了

原文网址:http://blog.csdn.net/love_rongrong/article/details/12557347

 

 

删除文件夹下的 所有.svn或者.git文件夹信息

 

cd到该文件夹

 
//删除文件夹下的所有 .svn 文件
find . -name ".svn" | xargs rm -Rf
//删除文件夹下的所有 .git 文件
find . -name ".git" | xargs rm -Rf
 
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
 git config --global http.postBuffer 524288000
git config --global http.postBuffer 2M
 ----------------------------------------------------
2014-12-25
Total 100 (delta 25), reused 0 (delta 0)
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

We experienced this issue recently but none of the above solved it. In the end we pushed patches a few at a time (binary chop) until we found that one was causing the problem.

The version of Git on the server was older than our local Git and did not support one of the headers in the commit.

An easy way to see if this affects you is to run git fsck in your repository directory. This will report any potential issues.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics