github无法访问,一招搞定
新手也能做到,比较简单点
首先下载软件
下载好之后,打开软件,点击其他设置
![图片[1]-github无法访问,一招教你搞定-逍遥资源网](https://www.4984.cn/wp-content/uploads/2025/10/d2b5ca33bd20251021103500.png)
然后点击修改hosts文件,一直往下滑,最后面复制粘贴下面数据,然后保存,即可访问了
140.82.112.26 alive.github.com
140.82.114.25 live.github.com
185.199.110.154 github.githubassets.com
140.82.113.21 central.github.com
185.199.110.133 desktop.githubusercontent.com
185.199.109.133 camo.githubusercontent.com
185.199.111.133 github.map.fastly.net
``` :ml-citation{ref="1" data="citationList"}
保存后重启浏览器或电脑生效。
### 允许:ml-search-more[GitHub IP]{text="GitHub IP地址列表"}访问网络
若处于企业或受限网络环境,需联系网络管理员开放以下端口:
- HTTPS(443)
- TCP(80)
- DNS(53) :ml-citation{ref="2" data="citationList"}
### 使用:ml-search-more[VPN]{text="访问GitHub VPN推荐"}或代理
通过VPN或代理服务器访问GitHub,尤其适用于网络限制地区。 :ml-citation{ref="3" data="citationList"}
### 账户问题处理
若提示账户锁定或密码错误:
- 检查邮箱是否收到:ml-search-more[GitHub安全通知]{text="GitHub安全通知"}
- 重置密码或使用“忘记密码”功能 :ml-citation{ref="4" data="citationList"}
### 浏览器兼容性
清理浏览器缓存和Cookies,更换浏览器(如Chrome/Edge)尝试登录。 :ml-citation{ref="4" data="citationList"}
:::ml-data{name=citationList}
```json
[{"source":{"name":"GitHub"},"isVideo":false,"title":"github-hosts","thumbnail":"http://t7.baidu.com/it/u=1112264781,719401933&fm=217&app=137&f=JPEG?w=800&h=240&s=FAA1F1488BE8AF720050441B0300C0C2","linkInfo":{"data-click-info":"{}","href":"https://github.com/maxiaof/github-hosts","target":"_blank","data-noblank":true,"data-show":"list","data-show-ext":"{\"pos\":\"1\",\"component_content\":{\"component_name\":\"reference\"}}"}},{"source":{"name":"GitHub文档官网"},"isVideo":false,"title":"连接问题故障排除","linkInfo":{"data-click-info":"{}","href":"https://docs.github.com/zh/enterprise-cloud@latest/get-started/using-github/troubleshooting-connectivity-problems","target":"_blank","data-noblank":true,"data-show":"list","data-show-ext":"{\"pos\":\"2\",\"component_content\":{\"component_name\":\"reference\"}}"}},{"source":{"logo":"https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=2005731947,4139443793&fm=195&app=88&f=JPEG?w=200&h=200","name":"CSDN博客"},"isVideo":false,"title":"无法访问GitHub,可以尝试以下几种解决方法","linkInfo":{"data-click-info":"{}","href":"https://blog.csdn.net/ynhlcd/article/details/142326507","target":"_blank","data-noblank":true,"data-show":"list","data-show-ext":"{\"pos\":\"3\",\"component_content\":{\"component_name\":\"reference\"}}"}},{"source":{"logo":"https://search-operate.cdn.bcebos.com/175c73f4973c6168ed6acae5b638fa15.png","name":"博客园"},"isVideo":false,"title":"为什么 GitHub 登不上了","linkInfo":{"data-click-info":"{}","href":"https://www.cnblogs.com/wuseng/p/18488786","target":"_blank","data-noblank":true,"data-show":"list","data-show-ext":"{\"pos\":\"4\",\"component_content\":{\"component_name\":\"reference\"}}"}}]
© 版权声明
THE END
暂无评论内容