天天看点

git太慢时的加速办法,测试有效

  • 办法1,测试无效

/etc/hosts

C:\Windows\System32\drivers\etc\hosts

添加

192.30.255.112 github.com
103.245.222.249 github.global.ssl.fastly.net      

重启。测试无效。

  • 办法2,测试有效
git config --global http.proxy 127.0.0.1:50647
git config --global https.proxy 127.0.0.1:50647
 
git config --global  http.https://github.com.proxy 127.0.0.1:50647
git config --global https.https://github.com.proxy 127.0.0.1:50647      
  • 下载时间

早上8点之前,下载速度飞快。一到9点速度马上就下降了。

这个吾分析过,白天中国人上班,下午开始美国人上班,所以最好是下半夜。