我正在尝试克隆一个 git 存储库并收到以下警告和错误消息:
Cloning into 'projectname'...
warning: unsupported ssl version tlsv1.2: using default
* Couldn't find host <HOST> in the .netrc file; using defaults
* Trying <IP ADDRESS>...
* Connected to <HOST> (<IP ADDRESS>) port 443 (#0)
* Unknown SSL protocol error in connection to <HOST>:-9838
* Closing connection 0
fatal: unable to access 'https://<HOST>/ios/ios-app.git/': Unknown SSL protocol error in connection to <HOST>:-9838
我在用:
- OS X El Capitan(10.11.3)
- Git 客户端(2.6.4)
- OpenSSL(1.0.2e)
怎么了?
更新:我在计算机上创建了另一个用户,克隆成功了。只有我的用户有问题。问题出在哪里?
答案1
从我的 .gitconfig 文件中删除了以下行:
http.sslverify=false
http.postbuffer=157286400
http.sslversion=tlsv1.0
credential.helper=cache --timeout=3600
我不确定是哪一个阻止了我与遥控器的连接。也许是http.sslversion=tlsv1.0
。我希望这也能帮助其他人。