背景: git clone vue源码,由于一些qiang的原因,最开始进入github就挺慢的,git clone的时候无敌巨慢!!
排除本地网络的原因,大概率是q和代理的原因
解决:
可以先切换下克隆方式,https或者ssl或者download zip…
以下重点!
- 如果可以使用代理,速度仍然很慢
使用github的镜像网站进行访问,
github.com.cnpmjs.org
,我们将原本的网站中的github.com
进行替换。例如:
访问 https://github.com/
替换为
访问:https://github.com.cnpmjs.org/
git clone 也一样,例如:
git clone https://github.com
/PanJiaChen/vue-element-admin.git
很慢,将其替换为
https://github.com.cnpmjs.org
/PanJiaChen/vue-element-admin.git
- 如果不能使用代理,可以试试增大postbuffer (500M)
git config --global http.postBuffer 524288000