reprinted

http://ju.outofmemory.cn/entry/351783


In China, access to Github is often very slow, especially in clone remote code, a few KiB/s speed after encountering dozens or hundreds of MB of code, let everyone suffer. Here is a method that is absolutely a cure-all, and the measurement speed can reach nearly 1M.

1. Get the making related website IP access https://www.ipaddress.com, to find the page at the bottom of the “IP Address Tools – the Quick Links’, Enter github.global.ssl.fastly.net and github.com respectively, query the IP address. 2. Modify the local host files in Windows, for example, C: / Windows/system32 / drivers/etc /, open the host file. 3. Increase the host mapping reference as follows, increase mapping of github.global.ssl.fastly.net and github.com. 151.101.113.194 github.global.ssl.fastly.net 192.30.253.112 github.com 4. Run the ipconfig /flushdns command to update the DNS cache. 5. You’re done. Now you have free access to the Github and Clone codes.