Solve the problem of slow pull the code from github

Original link: https://blog.csdn.net/yyou33459/article/details/84947819

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.netand github.comquery ip address.

2. Modify the local host file

Mac, for example, enter the command line: sudo vi /etc/hostand 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.netand github.commapping.

151.101.113.194   github.global.ssl.fastly.net
192.30.253.112   github.com

4. Update DNS cache

Command line: ipconfig /flushdnsthe 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

Guess you like

Origin blog.csdn.net/sihai12345/article/details/98076066