我已经尝试了所有方法,但似乎仍然无法通过 https 克隆 git 存储库,即使我可以毫无问题地获取 https 页面。
curl 版本:
$ curl --version
curl 7.21.7 (amd64-pc-win32) libcurl/7.21.7 OpenSSL/0.9.8r zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp
smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate Largefile NTLM SSL SSPI libz
尝试克隆 https 存储库:
$git clone https://github.com/SublimeText/LaTeXTools.git
Cloning into 'LaTeXTools'...
error: Protocol https not supported or disabled in libcurl while accessing https
://github.com/SublimeText/LaTeXTools.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
适用于 https 页面没问题:
$ curl -L https://www.google.com
<!doctype html><html
...
</script></body></html>
有什么建议吗?谢谢!
最佳答案
有可能 git 使用的 libcurl.dll 与您的命令行 curl
不同。确保你的 %PATH%
上没有任何其他 libcurl.dll 从你安装的其他东西构建,只是与 git 捆绑在一起的那个。
关于git - 即使 curl 适用于 https 页面,也无法克隆 https 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19742730/