We know that accessing GitHub in China is ok, but downloading files from GitHub is very slow. Here’s how to solve this problem.

1. Use notepad to open the hosts file in C:\Windows\System32\drivers\etc

2, querying, github.com, github.global.ssl.fastly.net, and codeload.github.com’s IP, can passGithub.com.ipaddress.com/ address query, look like this…

3. Add the queried IP address to the hosts file and save it, as shown below by the end of 2019-9-5: 140.82.114.3 151.101.185.194 192.30.253.121 github.global.ssl.fastly.net github.com codeload.github.com

4. Run CMD as the administrator and run ipconfig /flushdns to flush the DNS cache

5. Final effect, as shown below:

Change the download speed of the hosts file before:

Download speed of the hosts file after modification (up to MB) :