git clone速度过慢解决方案
使用 git clone url
时经常遇到下载速度过慢的问题,不管是https
还是ssh
代理,速度都很慢且最终下载失败。
解决方法:
使用github
的镜像网站进行访问,github.com.cnpmjs.org,我们将原本的网站中的github.com
进行替换。例如将我的github
替换为
https://github.com.cnpmjs.org/HUSTzhaowei
github: git clone https://github.com/···
镜像: git clone https://github.com.cnpmjs.org/···