博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
github 下载/克隆项目太慢/失败
阅读量:4229 次
发布时间:2019-05-26

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

Git clone 克隆项目失败

不小心删了本地仓库,重新git clone的过程中非常耗时,且常出现因连接问题导致clone失败,真是恼人!

在这里插入图片描述
报错如下:

error: RPC failed; curl 18 transfer closed with outstanding read data remainingfatal: The remote end hung up unexpectedlyfatal: early EOFfatal: index-pack failed

有效解决方案

一、设置克隆深度

把克隆深度设置为1,只包含最近的一次commit的一个分支,然后再fetch,可以解决因.git文件过大导致的clone失败。

git clone  [project address] --depth  1cd [project path]git fetch --unshallow

如果有需要,提供传送门:

二、使用开源中国提供的代码托管平台Gitee

  1. 将待clone的github仓库fork到自己的github
  2. 申请一个Gitee账户
  3. 在Gitee界面右上角有一个‘+’号,“从Github/GitLab导入仓库”
  4. 在弹出的页面中关联Github账户
  5. 选择“导入Github仓库”,选择对应的仓库“导入”,非常快
    在这里插入图片描述
  6. 按照 clone github仓库的方法, clone Gitee账户中的仓库;或者直接下载zip

转载地址:http://ygiqi.baihongyu.com/

你可能感兴趣的文章
Passive Optical Networks: Principles and Practice
查看>>
Beginning Java™ SE 6 Platform: From Novice to Professional
查看>>
Ethernet Networking for the Small Office and Professional Home Office
查看>>
Patterns for Computer-Mediated Interaction
查看>>
Mike Meyers' A+ Certification Passport, Third Edition
查看>>
The Rails Way
查看>>
MATLAB Demystified
查看>>
SharePoint 2007: The Definitive Guide [ILLUSTRATED]
查看>>
WCDMA for UMTS: HSPA Evolution and LTE
查看>>
Linux System Programming: Talking Directly to the Kernel and C Library [ILLUSTRATED]
查看>>
Prototype and script.aculo.us: You Never Knew JavaScript Could Do This!
查看>>
Beginning Joomla!: From Novice to Professional
查看>>
Understanding MySQL Internals
查看>>
Numerical Recipes 3rd Edition: The Art of Scientific Computing
查看>>
The Definitive Guide to the Microsoft Enterprise Library
查看>>
The Next Generation CDMA Technologies
查看>>
Photoshop CS3 Essential Skills
查看>>
Oracle Collaboration Suite Handbook
查看>>
ASP.NET AJAX Programmer's Reference: with ASP.NET 2.0 or ASP.NET 3.5
查看>>
Pro SharePoint 2007 Development Techniques
查看>>