能正常访问及下载github的情况下,git clone下载速度却很慢的解决办法

前言

改了hosts之后,浏览器访问github没问题,直接下载code也没问题,但是git clone的时候速度尤其慢,通常只有200 KB/s,于是上网探寻到一个答案,就是使用中文镜像网站,真香!

正文

只需要将 git clone https://github.com/<repo地址>.git 改为

git clone https://github.com.cnpmjs.org/<repo地址>.git 就可以实现一键式加速。

参考

原文地址:https://www.cnblogs.com/hatimwen/p/gitclonebetter.html