git pull出现fatal: unable to access 'https://github.com/XXX/YYY.git'

 

用cmd 发现ping不同 github.com

git pull出现fatal: unable to access 'https://github.com/XXX/YYY.git'

 

Ping不通,这时候,只需要在host文件里做些修改就可以,首先,定位到路径

C:\Windows\System32\drivers\etc 

找到host文件,右键-属性-安全-编辑,选中当前电脑登录的用户,给自己最高权限,确认。 
git pull出现fatal: unable to access 'https://github.com/XXX/YYY.git'

然后用记事本打开,在最后一行加:

192.30.253.113    github.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.237.1 dl-ssl.google.com
173.194.127.200 groups.google.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.128.95 ajax.googleapis.com

保存,再ping,发现速度杠杠的 
git pull出现fatal: unable to access 'https://github.com/XXX/YYY.git'

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2021-05-22
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案