找映射

  1. 拜访https://www.ipaddress.com
  2. 找到或者查问github.global.ssl.fastly.net和github.com,查问ip地址
  3. 上面是我的
    140.82.112.3 github.com
    199.232.69.194 github.global.ssl.fastly.net

批改hosts文件

windows零碎的hosts文件的地位如下:C:\Windows\System32\drivers\etc\hosts
mac/linux零碎的hosts文件的地位如下:/etc/hosts

  1. windows键+X键,抉择Windows Powershell(管理员)
  2. 在powershell 界面输出notepad,按回车
  3. 左上角关上,选到hosts文件目录,右下角改为所有文件
  4. 进行批改,增加两个映射地址,保留

测试

1.关上命令提示符输出ping github.com,若下图则胜利,申请超时则失败

关上https://github.com/,可能变快了吧...我起码是能够关上了...