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
相关推荐
知识汲取者13 小时前
Git撤销操作全解析:revert、undo与drop commit的区别与应用
git
yqcoder14 小时前
闭包是什么?优缺点、怎么防内存泄漏?
前端·http
cxxx1718 小时前
【同步Overleaf, Github】
git·overleaf
染翰19 小时前
Linux root用户安装配置Git
linux·git·后端
老虎海子19 小时前
从零手搓一个 AI 编程助手:Mini Claude Code 完全指南
人工智能·git·vscode·python·github
Cat_Rocky19 小时前
CICD-Git简单学习 操作流程后续补
git·学习
存在的五月雨20 小时前
Git的操作
git
丶Darling.20 小时前
Git 初学者使用手册
git
2501_9151063221 小时前
深入解析HTTPS抓包原理、中间人攻击及反抓包技术攻防
数据库·网络协议·ios·小程序·https·uni-app·iphone
sinat_2554878121 小时前
HTTP、端口、请求、响应、REST
java·网络·网络协议·http·tomcat·intellij-idea