1. First find the hosts file, the directory is as follows:
2. Use cmd to ping github.global.ssl.fastly.net and github.com in the figure below to get their corresponding ip addresses
3. Open the hosts file with Notepad and add the result we just pinged
#github 69.171.229.11 github.global.ssl.fastly.net 20.205.243.166 github.com |