hosts file path
mac: /etc/hosts
win: C:\WINDOWS\system32\drivers\etc\hosts
# GitHub Start
140.82.113.4 github.com
140.82.114.4 github.com
140.82.113.4 gist.github.com
140.82.113.6 api.github.com
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
199.232.96.133 raw.githubusercontent.com
199.232.96.133 gist.githubusercontent.com
199.232.96.133 cloud.githubusercontent.com
199.232.96.133 camo.githubusercontent.com
199.232.96.133 avatars.githubusercontent.com
199.232.96.133 avatars0.githubusercontent.com
199.232.96.133 avatars1.githubusercontent.com
199.232.96.133 avatars2.githubusercontent.com
199.232.96.133 avatars3.githubusercontent.com
199.232.96.133 avatars4.githubusercontent.com
199.232.96.133 avatars5.githubusercontent.com
199.232.96.133 avatars6.githubusercontent.com
199.232.96.133 avatars7.githubusercontent.com
199.232.96.133 avatars8.githubusercontent.com
199.232.96.133 user-images.githubusercontent.com
# GitHub End
Access to GITHUB is too slow and the Windows HOST file needs to be modified. The principle is: the DNS server set on the local network resolves the Github related domain name to the polluted IP address. These IP addresses are either inaccessible or the node is too far away, resulting in access failure or slow. Modifying the HOST file can bypass public DNS resolution and directly access Github's servers in South Korea, Japan, etc., so as to achieve the purpose of speeding up access.