I believe many people have encountered the problem of GitHub request is too slow, haha, very early encountered, but has been too lazy to solve, but today! I couldn’t help it. I decided to do it.

Here’s what works on my computer

  1. Open the Dns detection tool: tool.chinaz.com/dns?type=1&…
  2. Enter github.com in the test input field
  3. Select the IP with the smallest TTL (the one with a value)

Figure is as follows:

Next, assign the IP with the smallest TTL value to hosts

  1. Hosts: drive C >Windows>System32>drivers>etc

  1. You can copy the hosts file to the desktop, and then move it to the folder where the hosts file is located. At this time, you need to confirm whether to perform the operation and click OK (everyone’s IP address may not be the same).
52.74.223.119 github.comCopy the code

On my computer is effective, can only deal with the general situation, there are other people’s methods can tell me in the message ah, thank you.