github连不上

github连不上

错误提示

fatal: unable to access 'https://github.com/Ada-design/qianduan.git/': Failed to connect to github.com port 443 after 21073 ms: Couldn't connect to server

解决方案

下载steam++ https://steampp.net/

安装成功之后,启动steam++,然后配置github加速配置

配置成功之后,再从github上拉取代码,会提示

fatal: unable to access 'https://github.com/Ada-design/qianduan.git/': SSL certificate problem: unable to get local issuer certificate

这个错误信息表明你在尝试访问 GitHub 时遇到了 SSL 证书问题。这通常是因为你的系统无法验证服务器的 SSL 证书,可能是由于证书已过期、未正确配置或者你正在使用的 Git 客户端版本过旧

忽略 SSL 验证:如果你只是在本地开发并且不需要连接到外部网络,你可以选择忽略 SSL 证书验证。但请注意,这样做会降低安全性,因为你的数据传输将不再加密。在命令行中输入以下命令:

powershell 复制代码
git config --global http.sslVerify false

然后再次使用github拉取和提交代码,就ok

steam++ 采用Hosts加速

在C:\Windows\System32\drivers\etc下的hosts文件内添加如下

powershell 复制代码
140.82.114.4 www.github.com

199.232.5.194 github.global.ssl.fastly.net

54.231.114.219 github-cloud.s3.amazonaws.com


相关推荐
九狼8 小时前
Flutter URL Scheme 跨平台跳转
人工智能·flutter·github
逛逛GitHub10 小时前
4 个热门的 GitHub 开源项目
github
程序员鱼皮14 小时前
GitHub 关注突破 2w,我总结了 10 个涨星涨粉技巧!
前端·后端·github
HelloGitHub17 小时前
《HelloGitHub》第 119 期
开源·github
冬奇Lab1 天前
一天一个开源项目(第35篇):GitHub Store - 跨平台的 GitHub Releases 应用商店
开源·github·资讯
Jahzo1 天前
openclaw桌面端体验--ClawX
人工智能·github
逛逛GitHub1 天前
6个粉丝推荐的 GitHub 项目,收藏一波。
github
MaoPou2 天前
Hello Haxe篇
github