git - 即使 curl 适用于 https 页面,也无法克隆 https 存储库

标签 git curl https

我已经尝试了所有方法,但似乎仍然无法通过 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/

相关文章:

javascript - 从 CURL 示例实现 Twilio Api 调用到 js 返回状态代码 200 但似乎没有更新数据

php - CURLOPT_POST 与 CURLOPT_CUSTOMREQUEST

ssl - 多个 SSL 证书是否有效?

javascript - 通过 AJAX 从 HTTP 调用 HTTPS 进行登录

git - 我怎样才能阻止关于做 git commit --amend 的对话

windows - IntelliJ 终端 CTRL+C 不起作用

git:在工作副本之间推送的简单解决方案

git - 我如何有选择地 merge 或从 Git 中的另一个分支中挑选更改?

xml - 如何在 Windows 7 中使用 cmd 使用 cURL 发布 XML 数据?

apache - 主域上的 HTTPS 工作正常,但在子域上给出 404 Not Found