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

相关推荐
李少兄1 小时前
Git 忽略文件机制:.gitignore 与 .git/info/exclude
java·git·elasticsearch
☀Mark_LY1 小时前
个人数据同步es小工具
java·elasticsearch
极智-9962 小时前
GitHub 热榜项目-日榜精选(2026-01-24)| AI智能体工具、Python生态等 | remotion、VibeVoice、goose等
人工智能·python·github·ai智能体·大模型部署·语音ai
github.com/starRTC4 小时前
Claude Code中英文系列教程17:将Claude Code集成在GitLab工作流里面
git·gitlab·github
G皮T4 小时前
【Elasticsearch】OpenDistro Security 中 backend_roles 的设计哲学(含实战验证)
大数据·elasticsearch·kibana·权限管理·role·opensearch·backend role
晚霞的不甘6 小时前
Flutter 布局核心:构建交互式文档应用
开发语言·javascript·flutter·elasticsearch·正则表达式
JavaPub-rodert6 小时前
通过 GitHub 仓库下载微信 Mac & Windows 历史版本(Rodert 提供)
macos·微信·github
旅之灵夫6 小时前
【GitHub项目推荐--OpenEmu:macOS 复古游戏模拟器】
3d·github·策略模式
CCC:CarCrazeCurator7 小时前
git merge与rebase的区别及实操心得体会
git
草莓熊Lotso7 小时前
Qt 控件美化与交互进阶:透明度、光标、字体与 QSS 实战
android·java·开发语言·c++·人工智能·git·qt