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
相关推荐
Wiktok7 小时前
Git 提交规范网页说明
git
2301_803554529 小时前
https
网络协议·http·https
AWS官方合作商15 小时前
告别漫长等待:利用 Amazon GameLift Servers 实现分钟级快速迭代
前端·git·云计算·github·aws
红尘客栈215 小时前
git文件的上传
git
正经教主15 小时前
【Git】Git05-02:Github 基础同步命令
git·github
黎茗Dawn16 小时前
git-Windows-my-dell-笔记
开发语言·windows·git
心一信息20 小时前
http与https的详细介绍
网络协议·http·https
命运之光1 天前
【快速解决】怎么用git拉取项目到本地
git
万山y1 天前
Git 命令大全
git
Siren_dream1 天前
linux安装git-lfs(无需root权限)
linux·运维·git