git clone http/https 报错 10054/443 问题

文章目录

  • 错误
  • 解决方案
    • [1 关闭http和https代理](#1 关闭http和https代理)
    • [2 设置自己的代理](#2 设置自己的代理)

错误

错误 Failed to connect to github.com port 443: Timed out OpenSSL SSL_read: Connection was reset, errno 10054 一般都是网络问题

解决方案

1 关闭http和https代理

go 复制代码
git config --global --unset http.proxy

git config --global --unset https.proxy

2 设置自己的代理

1.按win键 2 打开设置 3 在网络和Internet找到自己的代理端口(我的是7890)4 然后命令行修改代理

go 复制代码
git config --global https.proxy http://127.0.0.1:7890

git config --global https.proxy https://127.0.0.1:7890

查看git当前代理设置

go 复制代码
git config --global --get http.proxy

git config --global --get https.proxy
相关推荐
kyriewen1 天前
别再每次都 Google 了:我整理了前端日常最常踩的 10 个 Git 坑,附速查表
前端·javascript·git
牛奶3 天前
HTTPS你不知道的事
前端·https·浏览器
A_Lonely_Cat4 天前
记一次 GitHub 幽灵协作者大清洗:强制重写 Git 历史与穿透 CDN 缓存实践
git·github
喵个咪4 天前
Go-Wind HTTP 服务器从入门到精通
后端·http·go
和你看星星5 天前
Git rerere:让重复冲突只解决一次
git
AlfredZhao6 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
嘻嘻仙人9 天前
Ubuntu中 git上传自己的项目和二次上传一般流程
git·github
Patrick_Wilson9 天前
Squash Merge 的血缘陷阱:为什么删掉的代码又活了过来
前端·git·程序员
沉浸学习的匿名网友9 天前
什么是 .gitignore?为什么每个 Git 项目几乎都离不开它?
前端·git
Goodbye10 天前
大模型无状态架构:从 HTTP 协议到 Harness AI 工程的深度解析
http