GitHub clone 项目加速小技巧

没有使用该技巧之前4.00kb/s

> git clone https://github.com/bilibili/ijkplayer.git
Cloning into 'ijkplayer'...
remote: Enumerating objects: 24677, done.
Receiving objects:   0% (42/24677), 12.01 KiB | 4.00 KiB/s

使用该技巧之后1.61 MiB/s

> git clone -b stable https://gitee.com/xinleiCoder/flutter.git
Cloning into 'flutter'...
remote: Enumerating objects: 180729, done.
remote: Counting objects: 100% (180729/180729), done.
remote: Compressing objects: 100% (36763/36763), done.
remote: Total 180729 (delta 138325), reused 180729 (delta 138325)
Receiving objects: 100% (180729/180729), 66.62 MiB | 1.61 MiB/s, done.
Resolving deltas: 100% (138325/138325), done.
Checking out files: 100% (3513/3513), done.

如何使用该技巧

第一步注册一个码云账号

第二步在码云中新建项目并选择创建已有项目

拉到最底下


image.png

点击导入已有仓库

填入仓库地址这里以https://github.com/bilibili/ijkplayer.git为例子

image.png

点击创建
码云会clone git仓库到码云仓库,差不读一分钟左右

最后使用码云clone该项目

image.png

你可能感兴趣的:(GitHub clone 项目加速小技巧)