转:1分钟解决git clone 速度慢的问题

转:https://blog.csdn.net/weixin_42886104/article/details/106454331

办法

使用国内镜像,目前已知Github国内镜像网站有github.com.cnpmjs.orggit.sdut.me/。速度根据各地情况而定,在clone某个项目的时候将github.com替换为github.com.cnpmjs.org即可。

示例 

//这是我们要clone的
git clone https://github.com/Hackergeek/architecture-samples
 
//使用镜像
git clone https://github.com.cnpmjs.org/Hackergeek/architecture-samples
 
//或者
 
//使用镜像
git clone https://git.sdut.me/Hackergeek/architecture-samples

 

posted @ 2020-12-14 18:09  m0w3n  阅读(706)  评论(0编辑  收藏  举报