git clone的时候访问github失败的问题

报错信息: Cloning into ReidSystem...fatal: unable to access https:githubQi5LeiReidSystem.git: Failed to co

报错信息:

Cloning into 'ReidSystem'...
fatal: unable to access 'https://github/Qi5Lei/ReidSystem.git/': Failed to connect to 127.0.0.1 port 33210 after 2062 ms: Could not connect to server

解决方法:

1. 检查 Git 代理设置

可能是 Git 配置了本地代理,导致访问 GitHub 的请求被重定向到 127.0.0.1。可以通过以下命令检查和移除代理:

# 检查代理设置 
git config --global --get http.proxy 
git config --global --get https.proxy 
# 移除代理设置 
git config --global --unset http.proxy 
git config --global --unset https.proxy

2. 尝试直接连接 GitHub(不用代理)

运行完以上命令后,再次尝试克隆仓库:

git clone https://github/Qi5Lei/ReidSystem.git

发布者:admin,转转请注明出处:http://www.yc00.com/web/1740417367a4241038.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信