【踩坑 git push】fatal: unable to access ‘https:..‘OpenSSL SSL_read: Connection was reset, errno 10054

踩坑记录:

在 git push 项目时,报错(属于 SSL 认证问题):

fatal: unable to access 'https://github.com/Kevin1024Efan/CaiDaXing-Blog.git/': OpenSSL SSL_read: Connection was reset, errno 10054

解决方法一:

取消 git 对 SSL 的检验

git config --global http.sslVerify "false"

在这里插入图片描述
解决方法二:

将 .git/cofig 文件中的 url 进行修改
原来:
https://github.com/Kevin1024Efan/CaiDaXing-Blog.git/
修改后:
[email protected]:Kevin1024Efan/CaiDaXing-Blog.git

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44695700/article/details/121689002
今日推荐