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

相关推荐
倒流时光三十年2 小时前
SpringBoot 数据库同步 Elasticsearch 性能优化
数据库·spring boot·elasticsearch
星辰_mya4 小时前
Elasticsearch更新了分词器之后
大数据·elasticsearch·搜索引擎
m0_694845574 小时前
tinylisp 是什么?超轻量 Lisp 解释器编译与运行教程
服务器·开发语言·云计算·github·lisp
June`4 小时前
muduo项目排查错误+测试
linux·c++·github·muduo网络库
春日见4 小时前
如何创建一个PR
运维·开发语言·windows·git·docker·容器
Elastic 中国社区官方博客4 小时前
Elasticsearch:Workflows 介绍 - 9.3
大数据·数据库·人工智能·elasticsearch·ai·全文检索
星辰_mya5 小时前
Elasticsearch主分片数写入后不能改
大数据·elasticsearch·搜索引擎
weixin_6686 小时前
GitHub 2026年AI项目详细数据汇总表-AI分析-分享
人工智能·github
春日见15 小时前
vscode代码无法跳转
大数据·人工智能·深度学习·elasticsearch·搜索引擎
那起舞的日子21 小时前
ElasticSearch系列-3-java端整合CURD
elasticsearch