Windows
打开以下路径的文件
C:\Windows\System32\drivers\etc\hosts
Linux
打开以下路径的文件
sudo vim /etc/hosts
编辑hosts
- 获取 github的IP地址
打开 https://www.ipaddress.com/ 获取最新的 github.com IP 和 github.global.ssl.fastly.net IP (ssh通道)
打开以下路径的文件
C:\Windows\System32\drivers\etc\hosts
打开以下路径的文件
sudo vim /etc/hosts
打开 https://www.ipaddress.com/ 获取最新的 github.com IP 和 github.global.ssl.fastly.net IP (ssh通道)