1. Modify the hosts file
hosts file path, as follows:
C:\Windows\System32\drivers\etc\
Add the following to the hosts file:
# github
140.82.112.4 github.com
199.232.69.194 github.global.ssl.fastly.net
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
2. Refresh the DNS resolution cache
Win + R , enter the cmd command line mode, execute the following command:
ipconfig /flushdns
3. Visit GitHub official website
GitHub official website address: https://github.com/
can normally access GitHub official website, the effect is as follows: