参考文章:解决git clone慢问题
- 访问 https://www.ipaddress.com/
找到 github.com 和 github.global.ssl.fastly.Net 的IP地址
199.232.69.194 github.global.ssl.fastly.Net
140.82.112.3 github.com
- 把这两行加到hosts文件里面
hosts文件路径(windows):
C:\Windows\System32\drivers\etc\hosts
- 刷新dns缓存
ipconfig /flushdns