最近脑子总是不够用,被毕设忙的头脑不清晰了,随性记下来吧,帮助自己也帮助道友。
想必有些道友也因为从github上拉取资源过慢而焦躁吧,这里给一个加速的方案。

git clone https://github.com/xxxxx

换成

git clone https://github.com.cnpmjs.org/xxxxx


例如:

# git clone https://github.com.cnpmjs.org/coreos/prometheus-operator
正克隆到 'prometheus-operator'...
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 51353 (delta 0), reused 2 (delta 0), pack-reused 51348
接收对象中: 100% (51353/51353), 64.03 MiB | 1.06 MiB/s, done.
处理 delta 中: 100% (29821/29821), done.

 可以看到速度是飞快的

相关文章:

  • 2021-08-08
  • 2022-12-23
  • 2022-01-12
  • 2021-12-03
  • 2022-12-23
  • 2021-10-31
  • 2021-11-04
猜你喜欢
  • 2021-10-16
  • 2021-07-24
  • 2021-05-13
  • 2021-06-24
  • 2022-12-23
  • 2021-10-16
  • 2021-04-01
相关资源
相似解决方案