windows上安装了git(https://www.git-scm.com/download/)但是下载速度超级慢。
解决办法
- 获取Github相关网站的ip,访问 https://www.ipaddress.com
- 分别查找 github.global.ssl.fastly.net 和 github.com 的IP地址。
- 修改本地host文件,C:/WINDOWS/system32/drivers/etc/hosts
151.101.185.194 global-ssl.fastly.Net 192.30.253.112 github.com
- 更新DNS缓存; 打开cmd;输入 ipconfig /flushdns 这样下载速度提高了不少
引用链接和更多
解决访问Github与clone很慢的问题
Windows 环境下 Git clone pull fetch 慢 解决之道