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


相关推荐
AIMath~39 分钟前
如何将一个新的文件夹使用git 工具提交到github新仓库中
git·github
Yunzenn1 小时前
深度分析字节最新研究cola-DLM 第 10 章:从文本到多模态 —— 统一生成的未来
github
Ajie'Blog1 小时前
AI 编程工具怎么选:Claude Code、Cursor、GitHub Copilot 与 Ollama 指南
人工智能·github·copilot
Larcher2 小时前
后续:上次的优化又崩了?这次是 SQLite WAL 把 Codex 直接卡死了
数据库·人工智能·github
comcoo2 小时前
电脑自动化 AI OpenClaw 2.7.5 Win11 一键配置
人工智能·github·openclaw安装包·open claw部署
jiayong233 小时前
GitHub 开源项目排行榜搜索指南(AI / Agent / Workflow / Java / Vue)
人工智能·开源·github
Azure DevOps3 小时前
在Github的企业Enterprise中开通Copilot
github·copilot
发现你走远了3 小时前
前端多环境自动化部署实战:GitHub Actions + Azure Blob + Cloudflare
前端·自动化·github
Jiude13 小时前
AI 写代码太快之后,团队协作反而更难了
人工智能·架构·github
2401_8769641317 小时前
27考研余炳森概率论|喻老李良2027资料网课
windows·git·考研·svn·eclipse·github·概率论