git clone 太慢了的解决方法

比如

$ git clone https://github.com/kubernetes/kubernetes.git

我们可以使用加速器进行 Clone,只需要将 github.com 替换成 github.com.cnpmjs.org 即可:

$ git clone https://github.com.cnpmjs.org/kubernetes/kubernetes.git
 
这里你要注意,通过镜像网站访问仅对 HTTPS 协议生效,对 SSH 协议不生效,并且 github.com.cnpmjs.org 的同步时间间隔为 1 天。
 
原文地址:https://www.cnblogs.com/FengZeng666/p/15002210.html