【发布时间】:2021-11-03 03:30:34
【问题描述】:
每当我尝试使用 git clone 命令时,我的 mac 都会给我这个错误
$ git clone https://github.com/hammad1015/CN_project
Cloning into 'CN_project'...
fatal: unable to access 'https://github.com/hammad1015/CN_project/': Unsupported SSL protocol version
同样,每当我尝试使用 brew 安装某些东西时,都会发生同样的错误
brew install php
fatal: unable to access 'https://github.com/Homebrew/brew/': Unsupported SSL protocol version
卷曲
$ curl https://google.com/ --tlsv1.2 --verbose
* Hostname was NOT found in DNS cache
* Trying 142.250.180.46...
* Connected to google.com (142.250.180.46) port 443 (#0)
* Unsupported SSL protocol version
* Closing connection 0
curl: (35) Unsupported SSL protocol version
【问题讨论】:
-
如果你改用
git clone git@github.com:hammad1015/CN_project.git会怎样? -
@matt 这个有效,但有什么区别?
-
Http 与 ssh。 GitHub 上不再有 http-with-password 了,这可能就是你想要做的。