1. 有代理:
①. 只对github.com
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080 // 有代理
git config --global http.https://github.com.proxy github.com.cnpmjs.org // 没有代理
②. 取消代理
git config --global --unset http.https://github.com.proxy
2. 配置Hosts:
①. https://www.ipaddress.com/
②. 查找github.com与github.global.ssl.fastly.net对应的ip:
xxxx github.global.ssl.fastly.net
xxxx github.com
(1). 数据更新时间:2021-02-28 16:22:07:
# GitHub520 Host Start
185.199.108.154 github.githubassets.com
140.82.113.22 central.github.com
185.199.108.133 desktop.githubusercontent.com
185.199.108.153 assets-cdn.github.com
185.199.108.133 camo.githubusercontent.com
185.199.108.133 github.map.fastly.net
199.232.69.194 github.global.ssl.fastly.net
192.30.253.113 gist.github.com
185.199.108.153 github.io
140.82.114.4 github.com
140.82.113.5 api.github.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars.githubusercontent.com
140.82.112.10 codeload.github.com
52.216.104.59 github-cloud.s3.amazonaws.com
52.216.164.131 github-com.s3.amazonaws.com
52.216.29.28 github-production-release-asset-2e65be.s3.amazonaws.com
52.217.81.140 github-production-user-asset-6210df.s3.amazonaws.com
52.217.80.164 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153 githubstatus.com
64.71.168.201 github.community
185.199.108.133 media.githubusercontent.com
# GitHub520 Host End
(2). refresh dns settings:
sudo killall -HUP mDNSResponder