Github加速clone/pull/push
由于众所周知的原因,clone、push代码会非常的慢,我根据我的使用经验总结了以下一些加速方式,希望能帮助有需要的伙伴。
第一种、使用网络代理工具如:proxychains
说明:具体使用方式百度
第二种、使用代理:
说明:该模式必须有代理 如何获取并使用代理请百度
1、https模式:配置用户级代理
git config --global http.proxy http://127.0.0.1:1235
git config --global https.proxy http://127.0.0.1:1235
或
git config --global http.https://github.com.proxy http://127.0.0.1:1235
git config --global https.https://github.com.proxy http://127.0.0.1:1235
配置完成以后就可以愉快的clone、pull、push了
说明:
1)、上面一种 git 会全部代理到本机1235这个端口