博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git 提示:error: unable to rewind rpc post data - try increasing http.postBuffer
阅读量:4293 次
发布时间:2019-05-27

本文共 1072 字,大约阅读时间需要 3 分钟。

把项目fork下来,加入本地项目,当push到源仓库的时候,出现如下问题:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/develop:refs/heads/develop 

Pushing to http://git.oschina.net/******

POST git-receive-pack (chunked)

error: unable to rewind rpc post data - try increasing http.postBuffer

error: RPC failed; curl 56 Recv failure: Connection reset by peer

fatal: The remote end hung up unexpectedly

fatal: The remote end hung up unexpectedly

Everything up-to-date

Completed with errors, see above




大概意思是http.postBuffer太小,需要设置更大的值,应该是我们项目中用到的第三方静态库有400多MB大小的单个.a文件。


谷歌查了相关资料,在终端执行

git config --global http.postBuffer 524288000

命令,将http.postBuffer设置为500MB大小后,可以正常push操作了。


也可以通过Source Tree

唤起终端运行命令:

git config http.postBuffer 524288000


参考链接:http://www.ifeegoo.com/git-code-management-dot-gitignore-file-has-no-effect-solution.html

http://www.ifeegoo.com/git-rpc-failed-result-equals-56-http-code-equals-0-error-analysis-and-solution.html

http://support.deveo.com/knowledgebase/articles/188200-git-push-over-https-with-large-changesets

你可能感兴趣的文章
HTTP协议
查看>>
HTTPS
查看>>
git add . git add -u git add -A区别
查看>>
apache下虚拟域名配置
查看>>
session和cookie区别与联系
查看>>
PHP 实现笛卡尔积
查看>>
Laravel中的$loop
查看>>
CentOS7 重置root密码
查看>>
Centos安装Python3
查看>>
cmder的安装与配置
查看>>
PHP批量插入
查看>>
laravel连接sql server 2008
查看>>
Laravel 操作redis的各种数据类型
查看>>
Laravel框架学习笔记之任务调度(定时任务)
查看>>
laravel 定时任务秒级执行
查看>>
浅析 Laravel 官方文档推荐的 Nginx 配置
查看>>
Swagger在Laravel项目中的使用
查看>>
Laravel 的生命周期
查看>>
CentOS Docker 安装
查看>>
Nginx
查看>>