![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/071a7a45ef49153f9833208005820b5f.png)
修改hosts文件
Windows系统的hosts文件存在位置为
C:\Windows\System32\drivers\etc\hosts
使用记事本打开。
添加域名IP
使用网站
https://www.ipaddress.com/
查询github的两个域名,分别是
github.com
和
github.global.ssl.fastly.net
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/c70d73efd47c9cba7dd88b71b74eba38.png)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/bbe29c8f6620676758ca15bb762416e8.png)
将其写入到hosts
文件中
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3b5277a0fb7746a188577a422e0316a0.png)
刷新DNS
在命令行输入
ipconfig /flushdns
即可。
之后下载git速度会到达几百k。
参考
- 解决GitHub下载速度缓慢的问题