1. Obtain ip Github related sites
Visit https://www.ipaddress.com
, found in the bottom of the page IP Address Tools - Quick Links
, respectively input github.global.ssl.fastly.net
and github.com
query ip address.
2. Modify the local host file
Mac, for example, enter the command line: sudo vi /etc/host
and enter the password for the computer, open the host file.
Window A Case StudyC:\Windows\System32\drivers\etc
3. Increase the host mapping
Reference to the following, increase github.global.ssl.fastly.net
and github.com
mapping.
151.101.113.194 github.global.ssl.fastly.net
192.30.253.112 github.com
4. Update DNS cache
Command line: ipconfig /flushdns
the increasing mappings to take effect.
5.'re done
Then you can freely access Github and clone code.
Author: coding must have the
original: https://blog.csdn.net/yyou33459/article/details/84947819