无论是windows还是mac进入到host文件,中添加下面几行短代到最后即可:
#解决git clone 速度慢的问题
192.30.253.112 github.com
151.101.185.194 github.global.ssl.fastly.net
#解决浏览器下载master-zip包的问题
192.30.253.120 codeload.github.com
然后可能直接可以,也可能需要刷新DNS才行,直接重新连网就行,或者用命令行刷新DNS,windows是ipconfig /flushdns
host文件路径:
mac 直接用go查找hosts即可
windows在c:/windows/system32/drivers/etc/hosts