从 github 执行 git clone 一个大的项目时提示 error: RPC failed

简介: 目前克隆一个比较大的项目,出现RPC failed的错误Cloning into 'bigfiles'...remote: Counting objects: 190, done.remote: Compressing objects: 100% (157/157), done.

目前克隆一个比较大的项目,出现RPC failed的错误

Cloning into 'bigfiles'...
remote: Counting objects: 190, done.
remote: Compressing objects: 100% (157/157), done.
error: RPC failed; result=56, HTTP code = 200| 5.00 KiB/s
fatal: The remote end hung up unexpectedlfy
atal: early EOF
fatal: index-pack failed

原因

应该是clone内容更新太多,需要设置postBuffer更大些
This can be caused if your specific Git client is attempting to send more data than your local httpPostbuffer setting is set to allow.

临时解决办法

While we have server site settings set appropriately for this option, you may need to adjust/override your client's settings. To do this, execute the following command(s):
From within a specific repository. Note the number at the end is the size, in bytes that you wish to allow in a single post. If you have much larger files, you may need to increase this number.

git config http.postBuffer 524288000
To set this gloablly for all remote Git repositories you ever connect to

或者

git config --global http.postBuffer 524288000

参考资料

https://confluence.atlassian.com/bbkb/error-rpc-failed-result-18-http-code-0-301663284.html

相关文章
|
5天前
|
开发工具 git
Git项目如何配置,如何上传至GitHub。其详细步骤
Git项目如何配置,如何上传至GitHub。其详细步骤
10 0
|
14天前
|
网络安全 数据安全/隐私保护
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
|
15天前
|
存储 开发工具 git
|
19天前
|
开发工具 数据安全/隐私保护 C++
vs2019中同步到github上的用户名错误_控制面板和vs的git全局设置重新登录
vs2019中同步到github上的用户名错误_控制面板和vs的git全局设置重新登录
17 0
|
21天前
|
前端开发 JavaScript 网络安全
Git(3) 使用Github管理项目
Git(3) 使用Github管理项目
25 0
|
1月前
|
缓存 数据可视化 网络安全
Git命令大全
Git命令大全
60 1
|
1月前
|
开发工具 git
Git教程:深入了解删除分支的命令
【4月更文挑战第3天】
56 0
Git教程:深入了解删除分支的命令
|
2月前
|
存储 Shell Linux
【Shell 命令集合 文件管理】Linux git命令使用教程
【Shell 命令集合 文件管理】Linux git命令使用教程
37 0
|
2月前
|
开发工具 git
git常用命令整理
git常用命令整理
16 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`回退版本。掌握这些,提升代码管理效率!
22 0