解决无法Ping通Github
来源:互联网 发布:java 高效率排序 编辑:程序博客网 时间:2024/04/28 05:41
今天在push的时候发现报错,如下:
$ git push -u origin masterssh: Could not resolve hostname github.com: Temporary failure in name resolutionfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
找了很久原因,首先ctrl + r 输入cmd ,ping一下github.com,如图
Ping不通,这时候,只需要在host文件里做些修改就可以,首先,定位到路径
C:\Windows\System32\drivers\etc
找到host文件,右键-属性-安全-编辑,选中当前电脑登录的用户,给自己最高权限,确认。
然后用记事本打开,在最后一行加:
192.30.253.113 github.com192.30.252.131 github.com185.31.16.185 github.global.ssl.fastly.net74.125.237.1 dl-ssl.google.com173.194.127.200 groups.google.com192.30.252.131 github.com185.31.16.185 github.global.ssl.fastly.net74.125.128.95 ajax.googleapis.com
保存,再ping,发现速度杠杠的
1 0
- 解决无法Ping通Github
- 突然无法ping通 紧急解决
- windows server 2008解决无法PING通问题
- windows server 2008解决无法PING通问题
- windows server 2008解决无法PING通问题
- 解决虚拟机可以连网但无法ping通的问题
- 主机与虚拟机无法ping通的异常解决
- 主机与虚拟机无法ping通的异常解决:
- windows server 2008解决无法PING通问题
- windows server 2008解决无法PING通问题
- 无法ping通阿里云ECS服务器公网地址解决
- windows server 2008解决无法PING通问题:
- 解决redhat linux下IP地址可以ping通,域名无法ping通
- 解决VirtualBox虚拟机无法Ping通主机的问题(取消Windows7的防ping设置)
- 无法ping通
- 解决GitHub无法正常访问
- 解决浏览器无法连接Github
- 解决PING指令无法正常使用问题
- 正确理解Threadlocal类以及内存泄漏问题
- eclipse中开发NDK以及环境搭建(一)
- 后缀数组专题[loading......]
- Linux Kernel input设备之input设备注册
- ThreadPoolExecutor源码解析
- 解决无法Ping通Github
- Vue.js从零开始
- (译)React Native 中的导航器怎么选?
- 每日十道面试题(六)
- 一个简单的基于spring jdbc的扩展
- Dubbo的使用
- 数据库范式
- 多线程同步 synchronized
- html中的keygen元素