Recently, when I cloned a project on github, I found that the speed was extremely slow. I excluded the reason for the network speed. The search found that the github.global.ssl.fastly.net
domain name was restricted. Find the ip address corresponding to this domain name, modify the host file, and then refresh the DNS cache. details as follows:
Query ip:
Website: https://www.ipaddress.com/
Check the ip of the following two URLs on this website
github.global.ssl.fastly.net
github.com
search result:
Modify the hosts file
The path of the hosts file on Windows is inC:\Windows\System32\drivers\etc\hosts
Flush DNS cache
#linux:
sudo /etc/init.d/networking restart
#windows:
ipconfig /flushdns
If the effect is not significant, it is recommended to use Code Cloud: https://gitee.com/