Git Cloning into :error: RPC failed

简介: Git Cloning into :error: RPC failed

[!] Error installing Presentation

[!] /usr/bin/git clone https://github.com/hyperoslo/Presentation.git /var/folders/4y/m9ckznh17111xdfwvn7xg0w40000gn/T/d20190515-1396-1qv2skw --template= --single-branch --depth 1 --branch 4.1.2


Cloning into ‘/var/folders/4y/m9ckznh17111xdfwvn7xg0w40000gn/T/d20190515-1396-1qv2skw’…

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

fatal: the remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

git 在 pull 或者 push 一个大项目时,可能会碰到出现如题所示的错误。

下载缓存太小问题。

解决方案:

增大下载缓存即可。

网络上往往都会说这是由于大文件造成的提交或者拉取失败。但是,经过本人测试,如果是 errno 56,那么应该是有大文件或者提交缓存方面的问题。而 errno 54 则不是这个问题。对于 56 错误的解决方式与网络上大部分文章的一致。都是增大缓存配置,比如下面就是配置提交缓存为

512M(536870912),当然你感觉还太小可以考虑把缓存配置为1024M(1073741824)。

w1:~ jiaguoshang$ git config https.postBuffer 1073741824
w1:~ jiaguoshang$ git config http.postBuffer 1073741824

千万记住,执行了命令后要关闭客户端,然后重新打开客户端执行pod update --verbose --no-repo-update。

另外我实践多次发现,在多个公司的wifi局域网就是采用付费的翻墙软件仍旧经常出现pod update --verbose --no-repo-update。但是采用电脑连接手机网络下载第三方库飞快。当然若好似上面说的缓存太小问题,你的网络再快不修改并增大缓存大小也没有用。现在第三库在github上大都是采用https

协议,所以git config http.postBuffer 1073741824这句才是最关键的。


目录
相关文章
|
20天前
|
Shell 开发工具 git
git拉去代码报错"Failed to connect to 127.0.0.1 port 31181: Connection refused"
在克隆`https://example.git/`时遇到错误:"fatal: unable to access 'https://example.git/': Failed to connect to 127.0.0.1 port 31181: Connection refused"。原因是Windows上代理设置未正确关闭,影响了Git配置。解决方法是通过git bash运行命令检查并取消代理:`git config --global http.proxy`和`git config --global --unset http.proxy`。
31 1
 git拉去代码报错"Failed to connect to 127.0.0.1 port 31181: Connection refused"
|
5天前
|
开发工具 git
【已解决】error: failed to push some refs to ‘git@github.com:BATdalao/Github-green.git‘
【已解决】error: failed to push some refs to ‘git@github.com:BATdalao/Github-green.git‘
10 1
|
9天前
|
开发工具 git
git error 已解决【Another git process seems to be running in this repository, e.g. an editor opened by】
git error 已解决【Another git process seems to be running in this repository, e.g. an editor opened by】
17 2
|
12天前
|
开发工具 git
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
|
18天前
|
开发工具 git
MAC如何使用Git命令行上传本地项目及理解,failed to push some refs to ‘https://gitee.com/brother-barking/spxx.git
MAC如何使用Git命令行上传本地项目及理解,failed to push some refs to ‘https://gitee.com/brother-barking/spxx.git
|
1月前
|
缓存 数据可视化 网络安全
Git命令大全
Git命令大全
70 1
|
1月前
|
开发工具 git
Git教程:深入了解删除分支的命令
【4月更文挑战第3天】
200 0
Git教程:深入了解删除分支的命令
|
1月前
|
存储 Shell Linux
【Shell 命令集合 文件管理】Linux git命令使用教程
【Shell 命令集合 文件管理】Linux git命令使用教程
55 0
|
1月前
|
开发工具 git
git常用命令整理
git常用命令整理
20 0
|
1月前
|
开发工具 git 开发者
Git常用命令大全:让你轻松驾驭版本控制
Git命令速查:`git init`新建仓库,`git clone`克隆,`git add`入暂存区,`git commit -m`提交,`git status`查看状态,`git log`查看历史,`git branch`创建分支,`git checkout`切换,`git merge`合并,`git pull`拉取更新,`git push`推送,`git remote -v`查看远程,`git checkout --`撤销本地修改,`git reset HEAD`取消暂存,`git reset --hard`回退版本。掌握这些,提升代码管理效率!
28 0