第一步打开下面这个网站

https://tool.chinaz.com/dns

输入gitup.com

 

第二步修改c盘里面的hooks文件 (跟着目录查找文件)

第三步把hooks里面的内容清除

添加下面这个内容然后保存

# localhost name resolution is handled within DNS itself.# 127.0.0.1 localhost# ::1 localhost20.205.243.166 github.com

GitHub Start
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
# GitHub End

 

  需要注意橙色ip地址需要跟你上面复制的ip地址一致 (例如广东:ip:

173.254.90.97)

最后一步打开终端

 

输入  ipconfig/flushdns