Git在无法访问github的访问方法

Git无法下载github上的源代码

代理的情况

问题Failed to connect to github.com port 443 after 21100 ms: Couldn't connect to server

提示我们需要为Git单独配置代理。

  • 查看我们的代理端口
     为git 设置全局代理

git config --global http.proxy 127.0.0.1:<你的端口号>

比如:

git config --global http.proxy 127.0.0.1:7890
备注Clash 代理一般就是7890端口

然后再git clone 就不会出现connect的问题了

非代理情况

如果你并未使用VPN,但依然遇到端口443连接失败的问题,尝试取消Git的代理设置:

git config --global --unset http.proxy

相关推荐
小小程序员mono15 小时前
模型进入「日更时代」:GPT-5.6 泄露、Claude 4.8 逼近、Gemini 3.5 上线、国产杀疯了摘要
人工智能·重构·开源·github
Larcher15 小时前
「Codex + DeepSeek 用户请进:你的对话记录是不是也卡到想砸键盘?」
人工智能·github·编程语言
极光技术熊15 小时前
最新Elasticsearch 版本演进与 Java 客户端接入完全指南
elasticsearch
Elastic 中国社区官方博客15 小时前
从平均值到任意百分位:Elasticsearch 在 ES|QL 中提供原生 exponential histogram 支持
大数据·人工智能·elasticsearch·搜索引擎·信息可视化·全文检索·数据可视化
Elastic 中国社区官方博客15 小时前
Elasticsearch Agent Builder 黑客松(Hackathon)
大数据·人工智能·elasticsearch·搜索引擎·云原生·全文检索
Ws_16 小时前
Git + Gerrit 第三课:分支、切换与合并
git·elasticsearch
程序员柒叔16 小时前
Dify 一周动态-2026-W22
人工智能·大模型·github·agent·知识库·dify
Elastic 中国社区官方博客16 小时前
Elasticsearch 9.4 推动 Elastic AI 生态系统的下一阶段:Dell AI Data Platform 与 NVIDIA
大数据·人工智能·elasticsearch·搜索引擎·全文检索
xlq2232217 小时前
6.git
git