git上传代码 出现错误fatal: unable to access ‘’: OpenSSL SSL_read: Con

328 阅读1分钟

git push时出现以下错误

fatal: unable to access 'github.com/ClowLAY/spr…': OpenSSL SSL_read: Connection was aborted, errno 10053 在这里插入图片描述 错误原因:主要是无法连接远程地址

解决办法修改远程地址,我原来使用的是https代理的远程仓库地址,

最直接的办法就是把https代理模式修改成git方式的 主要步骤如下:

#删除原来远程仓库(origin表示远程仓库名称,如果不知道可以使用git remote -v 命令查看)
git remote rm origin

#添加远程仓库地址(记得选择git方式的远程仓库地址)
git remote add origin git@github.com:ClowLAY/spring-cloud-config.git

#最后再次提交项目
git push -u origin main