gpt4 book ai didi

git - Grunt/Git 在连接到 github.com 时抛出未知 SSL 协议(protocol)错误 :443

转载 作者:太空宇宙 更新时间:2023-11-03 13:11:30 25 4
gpt4 key购买 nike

我正在使用 Grunt 构建 Angular 网站。在大约三分之一的构建中,我看到以下错误:

ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/FortAwesome/Font-Awesome.git", exit code of #128 fatal: unable to access 'https://github.com/FortAwesome/Font-Awesome.git/': Unknown SSL protocol error in connection to github.com:443

看到 GIT_CURL_VERBOSE=1 和 GIT_TRACE_PACKET=2 给出以下内容:

Additional error details:
* Couldn't find host github.com in the _netrc file; using defaults
* timeout on name lookup is not supported
* Trying 192.30.253.112...
* TCP_NODELAY set
* Connected to github.com (192.30.253.112) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
* Unknown SSL protocol error in connection to github.com:443
* stopped the pause stream!
* Closing connection 0
fatal: unable to access 'https://github.com/FortAwesome/Font-Awesome.git/': Unknown SSL protocol error in connection to github.com:443

我试过以下方法都没有用:

git config --global --add http.sslVersion tlsv1.2
git config --global http.sslverify false
git config --global url."https://".insteadOf git://
git config --global url."https://github.com/".insteadOf git@github.com

键入命令“git ls-remote --tags --heads https://github.com/FortAwesome/Font-Awesome.git”每次都有效。

最佳答案

当域名被IP地址替换时,问题就来了,尝试将github.com添加到你的hosts文件中,并确保它被正确解析。

问题明显的行:

* Couldn't find host github.com in the _netrc file; using defaults
* timeout on name lookup is not supported
* Trying 192.30.253.112...

关于git - Grunt/Git 在连接到 github.com 时抛出未知 SSL 协议(protocol)错误 :443,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43524319/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com