向github提交代码时出现问题,如图:
could not resolve host: github.com 问题解决办法
代码push失败,提示could not resolve host: github.com
 
 
解决办法:
 
1、打开终端,输入:ping github.com
could not resolve host: github.com 问题解决办法
 
2、直接修改/etc/hosts文件,windows系统应该也一样,直接修改host文件即可,在底部添加:
192.30.253.112 github.com
 
保存修改,再次进行代码提交操作,成功。 

相关文章:

  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-05-08
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2021-11-28
  • 2021-06-16
  • 2022-12-23
  • 2021-05-08
  • 2022-12-23
相关资源
相似解决方案