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

最新文章

  1. 纯CSS3实现3D跳动小球
  2. web系统开发为什么用asp.net MVC,为什么不用?
  3. jquery的height()和javascript的height总结,js获取屏幕高度
  4. 定义一个“点”(Point)类用来表示三维空间中的点(有三个坐标)。要求如下: (1)可以生成具有特定坐标的点对象。 (2)提供可以设置三个坐标的方法。 (3)提供可以计算该“点”距原点距离平方的方法。 (4)编写主类程序验证。
  5. 深度优化LNMP
  6. silverlight webclient实现上传、下载、删除、读取文件
  7. linux c 分解质因数
  8. zzuli oj 1146 吃糖果
  9. vijosP1388 二叉树数
  10. 数矩形(N - 暴力求解、打表)
  11. D3DXCreateTextureFromFileInMemoryEx函数
  12. 栅栏cyclicbarrier
  13. InnoDB: ERROR: the age of the last checkpoint
  14. JAVA中String = null 与 String = "" 的区别
  15. Javascript - ExtJs - 数据
  16. ArcGIS Server Rest 认证过程分析
  17. jQuery源码中的“new jQuery.fn.init()”什么意思?
  18. fjwc2019 D1T1 全连(dp+树状数组)
  19. sql server 日志传送问题整理
  20. nginx安装报错:configure: error: the HTTP rewrite module requires the PCRE library

热门文章

  1. ACM-ICPC 2015 Changchun Preliminary Contest J. Unknown Treasure (卢卡斯定理+中国剩余定理)
  2. php import require include use vendor
  3. Java数组重修,猜数小游戏改进和打印正三角形
  4. mybatis返回新增对象的主键
  5. Task3.PyTorch实现Logistic regression
  6. nginx之访问静态文件
  7. UX168办公本地环境维护记录
  8. Flutter中的浮动按钮 FloatingActionButton
  9. spash和selenium浅析
  10. CAD到ArcGIS相关操作