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

相关推荐
时光Autistic25 分钟前
【搭建教程】腾讯混元3D模型部署
开发语言·python·3d·github
黛玉晴雯子00129 分钟前
Devops基础之Gitlab概述(持续更新)
git
Mr-Wanter30 分钟前
麒麟V10x86 系统 curl报错SSLv3符号缺失问题解决
linux·服务器·github
初次攀爬者1 小时前
知识库-向量化功能-流式分片
后端·elasticsearch
逛逛GitHub1 小时前
推荐 5 个 yyds 的 AI 开源项目,给劲儿啊。
github
邵伯正在输入1 小时前
如何同时管理GitLab/GitHub的SSH密钥
ssh·gitlab·github·intellij idea
mike04122 小时前
Windows11安装git后与github联动
git·github
lusasky2 小时前
AI领域开发TOP开源产品-GitHub-2025
人工智能·开源·github
Joy T2 小时前
【Git 原理进阶】平行宇宙的熵减:深度解析“分叉”与“三路合并”机制
git
Dxy12393102163 小时前
Elasticsearch向量搜索介绍
大数据·elasticsearch