git 提交大小限制efrror: RPC failed; result=22, HTTP code = 411

来源:互联网 发布:sql降序排列 编辑:程序博客网 时间:2024/04/30 05:31

使用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


这就可以了

0 0
原创粉丝点击