解决方法
使用国内镜像,目前已知Github国内镜像网站有github.com.cnpmjs.org和git.sdut.me。速度根据各地情况而定,在clone某个项目的时候将github.com替换为github.com.cnpmjs.org即可。
如下
//这是我们要clone的
git clone https://github.com/mazamu/xxx.git
//使用镜像
git clone https://github.com.cnpmjs.org/mazamu/xxx.git
//或者
//使用镜像
git clone https://git.sdut.me/Hackergeek/mazamu/xxx.git
该博客介绍了如何通过国内的Github镜像站点github.com.cnpmjs.org和git.sdut.me来加速Git clone操作,以解决访问Github速度慢的问题。只需将原始URL中的github.com替换为镜像地址,即可快速克隆项目。
1万+





