原因:
git clone特別慢是因為github.global.ssl.fastly.net
域名被限制了。
思路:
只要找到這個域名對應的ip地址,然后在hosts文件中加上ip–>域名的映射,刷新DNS緩存便可。
步驟:
1、在網站 https://www.ipaddress.com/ 分別搜索下面兩個網址並保存查詢到的IP
地址:github.global.ssl.fastly.net

地址:github.com
2、找到並修改hosts文件(筆記本編輯)
Windows路徑:C:\Windows\System32\drivers\etc\hosts
Linux路徑:sudo vim /etc/hosts
3、保存並更新DNS
Windows ---> Win+r --> cmd --> 控制台輸入ipconfig /flushdns
Linux --->在終端輸入sudo /etc/init.d/networking restart
4、重新Clone項目