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

相关推荐
hengzhepa20 分钟前
ElasticSearch备考 -- Search across cluster
学习·elasticsearch·搜索引擎·全文检索·es
Elastic 中国社区官方博客2 小时前
Elasticsearch:使用 LLM 实现传统搜索自动化
大数据·人工智能·elasticsearch·搜索引擎·ai·自动化·全文检索
int WINGsssss2 小时前
Git使用
git
慕雪华年3 小时前
【WSL】wsl中ubuntu无法通过useradd添加用户
linux·ubuntu·elasticsearch
用户0760530354384 小时前
Git Revert:安全移除错误提交的方式
git
Elastic 中国社区官方博客5 小时前
使用 Vertex AI Gemini 模型和 Elasticsearch Playground 快速创建 RAG 应用程序
大数据·人工智能·elasticsearch·搜索引擎·全文检索
alfiy6 小时前
Elasticsearch学习笔记(四) Elasticsearch集群安全配置一
笔记·学习·elasticsearch
alfiy7 小时前
Elasticsearch学习笔记(五)Elastic stack安全配置二
笔记·学习·elasticsearch
西柚与蓝莓10 小时前
任务【浦语提示词工程实践】
github
Good_Starry16 小时前
Git介绍--github/gitee/gitlab使用
git·gitee·gitlab·github