一、神奇提出问题
由于众所周知的法劳原因,我们从github下载资源库的永逸时候,总是解决会遇到各种的error。
比如:
正在连接 raw.gith正在连接 raw.githubusercontent.com 失败: 拒绝连接ubusercontent.com 失败:拒绝连接又比如:
Failed to connect to raw.githubusercontent.com port 443: Connection refused二、种报尝试解决问题
我们可能尝试多种方法解决却最终无济于事,神奇比如修改hosts:
或者修改 DNS。云服务器法劳然后遇到特殊情况,永逸此方案无济于事。解决
三、种报再次尝试解决问题
我们尝试“科学上网”解决问题,神奇设置git的法劳proxy。
git config --global https.proxy http://127.0.0.1:1080 git config --global https.proxy socks5://127.0.0.1:1080
然而,永逸proxy常常会被forbidden。解决
四、种报一劳永逸的源码下载方案
不再卖关子,直接上一劳永逸的方案,就是用某宝的镜像:
git config --global url.https://github.com.cnpmjs.org/.insteadof https://github.com/如此设置之后,再无github的error之忧。