问题:
I am unable to clone HTTPS repositories.我无法克隆 HTTPS 存储库。 I can clone SSH repos fine, but not HTTPS repos.我可以很好地克隆 SSH 存储库,但不能克隆 HTTPS 存储库。 I cannot test the GIT protocol since I am behind a corporate firewall.我无法测试 GIT 协议,因为我在公司防火墙后面。
This is what I am trying to do:这就是我想要做的:
$ git clone https://github.com/nvie/gitflow.git
Cloning into gitflow...
fatal: Unable to find remote helper for 'https'
I have so far tried the following (based on Google searches)到目前为止,我已经尝试了以下(基于 Google 搜索)
- Purging and installing Git through
apt-get
通过apt-get
清除和安装 Git - Installing
build-deps
for Git throughapt-get
通过apt-get
为 Git 安装build-deps
- Installing curl dev libraries安装 curl 开发库
- Installing expat libraries安装 expat 库
- Downloading Git source and building using:下载 Git 源代码并使用以下方法构建:
-
./configure --prefix=/usr --with-curl --with-expat
- Also tried pointing configure at curl binary (
./configure --prefix=/usr --with-curl=/usr/bin/curl
)还尝试将配置指向 curl 二进制文件(./configure --prefix=/usr --with-curl=/usr/bin/curl
)
-
I have tried everything I can find on the internet with no luck.我已经尝试了所有可以在互联网上找到的东西,但都没有运气。 Can anyone help me?谁能帮我?
Git version = 1.7.6.4 Git 版本 = 1.7.6.4
OS = Ubuntu 11.04操作系统 = Ubuntu 11.04
解决方案:
参考一: https://stackoom.com/question/YwsX参考二: "Unable to find remote helper for 'https'" during git clone