git clone使用https协议报错OpenSSL SSL_read: Connection was reset, errno 10054

在使用git 下载github上的代码时, 一般有ssh协议和https协议两种。使用ssh协议可以成功clone代码, 但使用https协议时出错:

bash 复制代码
$ git clone https://github.com/openai/improved-diffusion.git
Cloning into 'improved-diffusion'...
fatal: unable to access 'https://github.com/openai/improved-diffusion.git/': OpenSSL SSL_read: Connection was reset, errno 10054

报错原因其实是证书错误问题。

解决方法也很简单, 设置正确的证书或者忽略证书。 忽略证书的解决方法比较简单。

如下设置即可忽略证书,这个设置是临时的。

bash 复制代码
env GIT_SSL_NO_VERIFY=true
相关推荐
fpcc1 天前
工具使用—git diff命令分析说明
git·工具
console.log('npc')1 天前
Git 删除指定提交记录操作指南
git
随风丶飘1 天前
[特殊字符] 告别“update“和“fix bug“——Smart Git Commit LLM 让 AI 帮你写专业的 Git 提交信息
人工智能·git·bug
yanlaifan1 天前
git clone时候指定换行符
git
小小安于乱1 天前
解决IDEA的git插件pull代码冲突但右下角不提示消息问题
java·git·intellij-idea
ITKEY_1 天前
git 命令行操作回退到指定版本
git
游戏开发爱好者81 天前
开心上架是什么,一站式 Apple 开发者工作台总览
android·小程序·https·uni-app·iphone·webview
2601_967019511 天前
关于SSL和TLS的常见问题解答
ssl
New_Horizons6661 天前
Git 操作(使用git-commit-template)
git
慕容引刀1 天前
或许你真的需要这个Git神器:让团队提交文案终于对齐了
人工智能·git·vscode·自然语言处理·github