[Github使用] git clone: error: RPC failed; result=18, HTTP code = 200 解决办法

git config --global http.postBuffer 1024288000
git config --list

clone时,出现这个错误.

《[Github使用] git clone: error: RPC failed; result=18, HTTP code = 200 解决办法》

因为自己的git库上面放了一些数据,所以整个库较大.google了一下,发现是curl的postBuffer 默认值较小的原因,配置下个这个值,就不会出现该错误了.

《[Github使用] git clone: error: RPC failed; result=18, HTTP code = 200 解决办法》

参考地址:

1.http://stackoverflow.com/questions/17683295/git-bash-error-rpc-failed-result-18-htp-code-200b-1kib-s

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

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

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

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

git config http.postBuffer 524288000

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

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

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

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

首先key-keygen 生成密钥

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

git push ssh://192.168.1.222/xxxx.git branch

这就可以了

    原文作者:安宇雨
    原文地址: https://www.jianshu.com/p/70c0595f448b
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞