解决github clone代码慢问题

MAC版

1.在网站在网站 https://www.ipaddress.com/ 分别搜索

github.global.ssl.fastly.net
github.com

获取他们的对应的静态ip

 修改host文件添加域名ip映射  静态ip会改变以当时查询到为准

 执行 sudo vim /private/etc/hosts 添加下面2个映射

199.232.5.194 github.global.ssl.fastly.net
192.30.253.112 github.com

执行 

dscacheutil -flushcache 刷新网络

 

 

重新执行git clone

猜你喜欢

转载自www.cnblogs.com/LQBlog/p/12400718.html
今日推荐