git_clone资源获取失败解决
2024-09-05 19:42:58
github上克隆一个仓库到本地,一直失败。还以为是git安装问题,卸载重装无效;又换了个大容量的磁盘目录位置;最后ECS系统也重装还是无效。。
remote: Counting objects: 5148, done.
remote: Compressing objects: 100% (16/16), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
然后google了下(为什么我不一开始就搜索。。。想当然瞎折腾)
原因是要克隆的仓库太大,文件多,导致git clone
失败。
解决:
- 方法1:增加git缓冲区大小
git config --global http.postBuffer 524288000
git config --list
- 方法2:浅层克隆,深度设置为1
git clone http://github.com/target.git --depth 1 # target.git 为目标地址
cd target
git fetch --unshallow
最新文章
- 纯CSS3实现3D跳动小球
- web系统开发为什么用asp.net MVC,为什么不用?
- jquery的height()和javascript的height总结,js获取屏幕高度
- 定义一个“点”(Point)类用来表示三维空间中的点(有三个坐标)。要求如下: (1)可以生成具有特定坐标的点对象。 (2)提供可以设置三个坐标的方法。 (3)提供可以计算该“点”距原点距离平方的方法。 (4)编写主类程序验证。
- 深度优化LNMP
- silverlight webclient实现上传、下载、删除、读取文件
- linux c 分解质因数
- zzuli oj 1146 吃糖果
- vijosP1388 二叉树数
- 数矩形(N - 暴力求解、打表)
- D3DXCreateTextureFromFileInMemoryEx函数
- 栅栏cyclicbarrier
- InnoDB: ERROR: the age of the last checkpoint
- JAVA中String = null 与 String = ";"; 的区别
- Javascript - ExtJs - 数据
- ArcGIS Server Rest 认证过程分析
- jQuery源码中的“new jQuery.fn.init()”什么意思?
- fjwc2019 D1T1 全连(dp+树状数组)
- sql server 日志传送问题整理
- nginx安装报错:configure: error: the HTTP rewrite module requires the PCRE library
热门文章
- ACM-ICPC 2015 Changchun Preliminary Contest J. Unknown Treasure (卢卡斯定理+中国剩余定理)
- php import require include use vendor
- Java数组重修,猜数小游戏改进和打印正三角形
- mybatis返回新增对象的主键
- Task3.PyTorch实现Logistic regression
- nginx之访问静态文件
- UX168办公本地环境维护记录
- Flutter中的浮动按钮 FloatingActionButton
- spash和selenium浅析
- CAD到ArcGIS相关操作