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 小时前
Soybean Admin移除git-hooks永久关闭git校验
git·vue
Archie_IT3 小时前
修图自由!自建IOPaint服务器,手机平板随时随地远程调用在线P图
运维·服务器·前端·git·深度学习·npm·conda
油泼辣子多加4 小时前
2025年04月11日Github流行趋势
github
Qredsun5 小时前
获取git分支间差异文件列表
git
黑眼圈的小熊猫5 小时前
Git开发
大数据·git·elasticsearch
Gladiator5755 小时前
博客记录-day140-场景题
github
小宋10218 小时前
Linux安装Elasticsearch详细教程
大数据·elasticsearch·搜索引擎
Elasticsearch9 小时前
Elasticsearch:用向量找到你最合拍的音乐好友 - Spotify Wrapped,第五部分
elasticsearch
Elastic 中国社区官方博客11 小时前
Elasticsearch:加快 HNSW 图的合并速度
大数据·数据库·人工智能·elasticsearch·搜索引擎·ai·全文检索
uhakadotcom12 小时前
模型上下文协议(MCP):简化AI与外部工具的集成
后端·面试·github