一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

BAE Git error: RPC failed; result=22, HTTP code = 411解决办法

时间:2014-08-13 编辑:简简单单 来源:一聚教程网

使用BAE Git时,需要对本地Git进行配置,不然会出现以下错误:

Counting objects: 13073, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12182/12182), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (13071/13071), 11.46 MiB | 5.10 MiB/s, done.
Total 13071 (delta 2059), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

解决方法


可以通过命令重新进行配置:

 代码如下 复制代码

$ git config –global http.postBuffer 52428800

或者这样配置:

 

BAE git config postBuffer

BAE Git 仓库默认只需要上传最大的文件为1MB,通过修改postBuffer来修改上传文件的最大值,这里我们设置为524288000,即最大可以上传500MB的文件。

重新提交一次就好了。

$ git push origin master
Counting objects: 13073, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12182/12182), done.
Writing objects: 100% (13071/13071), 11.46 MiB | 5.92 MiB/s, done.
Total 13071 (delta 2060), reused 0 (delta 0)
To https://git.duapp.com/appid-lixiphp
2dc8143..b87aad1 master -> master

云环境(BAE)支持广大开发者在本地开发模式下,通过Git客户端管理和发布应用代码

热门栏目