我每天都在使用Git(和GitHub),一切都运行正常,突然之间,我无法通过我的Git命令与我的远程GitHub存储库进行通信.当我尝试"Git pull"时,它会出现以下错误:
致命:无法访问' https://github.com/snahrvar/eatibl.git/ ':错误:1407742E:SSL例程:SSL23_GET_SERVER_HELLO:tlsv1警报协议版本
所以,我测试了多个存储库,我在计算机上遇到了同样的错误.我让其他人与那些相同的存储库进行交互,它对他们来说很好.在此错误之前,我在项目上执行了"npm install sharp"并且最终失败了,我怀疑这可能与某些SSL设置混乱,但这是一个疯狂的猜测!
任何一般的想法或指导将不胜感激!
如果它有用,那么这是我的环境:
直到昨天,我都成功使用了git“ push”和“ pull”命令,但是今天它不起作用,并给我这个错误: Push failed: Unable to access 'https://github.com/username/repository.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
我尝试了许多解决方案,但没有成功。我尝试的解决方案:
1.使用SSH密钥
2.更新git
3.使用openssl安装curl(安装时出现相同错误)
这是由于curl github.com -v:
* Rebuilt URL to: github.com/
* Trying 192.30.253.112...
* TCP_NODELAY set
* Connected to github.com (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: github.com
> User-Agent: curl/7.54.0
> Accept: */*
>
* Recv failure: Connection reset by peer
* stopped the pause stream!
* Closing connection 0
curl: (56) Recv failure: Connection reset …Run Code Online (Sandbox Code Playgroud) 我无法在 MacBook Pro(Catalina 操作系统)中安装 Home-brew。我尝试过使用 home-brew 网站中的当前命令
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Run Code Online (Sandbox Code Playgroud)