1. Query the ip of github.com
Https://github.com.ipaddress.com/
two。 Edit the host file
Open C:\ Windows\ System32\ drivers\ etc\ hosts and fill in
# ip github.com
140.82.113.4 github.com
3. Refresh dns configuration
ipconfig /flushdns
4. Verification
ping github.com
Check whether the ip reached by ping is modified.