Solve the problem of slow git clone

Article Directory


1. Method

Using domestic mirrors, currently known Github domestic mirror websites are github.com.cnpmjs.org and git.sdut.me/. The speed depends on local conditions. When cloning a project, replace github.com with github.com.cnpmjs.org.

Second, use steps

The code is as follows (example):

//这是我们要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

Guess you like

Origin blog.csdn.net/weixin_44925547/article/details/114749612