1. Modify the local hosts file

The hosts file in Windows is stored in C:\Windows\System32\drivers\etc\hosts the hosts file in MAC/Linux is stored in /etc/hostsCopy the code

2. Addgithub.global.ssl.fastly.net 和 github.comThe mapping of

To obtain the IP address of Github's related website, visit HTTPS://www.ipaddress.com, pull down and find "IP Address Tools -- Quick Links" at the bottom of the pageEnter github.global.ssl.fastly.net and github.com respectively, query the IP address The following is my configuration140.82114.4.	github.com
199.232. 5194.	github.global.ssl.fastly.net
Copy the code

Supplement:

MAC may not be able to modify the hosts file directly, To open the hosts file, enter sudo vi /etc/hosts and prompt you to enter the system password. Then enter I to enter the editing mode. Copy the IP of the added website into the editing mode.Copy the code