老方法,换源:
1、编辑/etc/hosts
sudo gedit /etc/hosts
2、在hosts文件末尾添加如下格式:
192.30.253.112 github.com
151.101.44.249 github.global.ssl.fastly.net
3、更新DNS缓存
sudo /etc/init.d/networking restart
OK,clone试试
老方法,换源:
1、编辑/etc/hosts
sudo gedit /etc/hosts
2、在hosts文件末尾添加如下格式:
192.30.253.112 github.com
151.101.44.249 github.global.ssl.fastly.net
3、更新DNS缓存
sudo /etc/init.d/networking restart
OK,clone试试
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。