问题描述
我无法克隆 HTTPS 存储库.我可以很好地克隆 SSH 存储库,但不能克隆 HTTPS 存储库.我无法测试 GIT 协议,因为我位于公司防火墙后面.
I am unable to clone HTTPS repositories. I can clone SSH repos fine, but not HTTPS repos. I cannot test the GIT protocol since I am behind a corporate firewall.
这就是我想要做的:
$ git clone https://github.com/nvie/gitflow.git
Cloning into gitflow...
fatal: Unable to find remote helper for 'https'
到目前为止,我已经尝试了以下(基于 Google 搜索)
I have so far tried the following (based on Google searches)
- 通过
apt-get
清除和安装Git - 通过
apt-get
为Git安装 - 安装 curl 开发库
- 安装 expat 库
- 下载 Git 源代码并使用:
./configure --prefix=/usr --with-curl --with-expat
- 还尝试将配置指向 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 版本 = 1.7.6.4
Git version = 1.7.6.4
操作系统 = Ubuntu 11.04
OS = Ubuntu 11.04
推荐答案
看起来在编译 git 时没有安装 (lib)curl-devel 会导致这种情况.
It looks like not having (lib)curl-devel installed when you compile git can cause this.
如果你安装 (lib)curl-devel,然后重建/安装 git,这应该可以解决问题:
If you install (lib)curl-devel, and then rebuild/install git, this should solve the problem:
$ yum install curl-devel $ # cd to wherever the source for git is $ cd /usr/local/src/git-1.7.9 $ ./configure $ make $ make install
这在 Centos 6.3 上对我有用.
This worked for me on Centos 6.3.
如果你没有 yum,你可以在这里下载 curl-devel 的源代码:
If you don't have yum, you can download the source to curl-devel here:
如果您运行的是 Ubuntu:
If you are running Ubuntu instead:
sudo apt-get install libcurl4-openssl-dev
这篇关于“无法找到‘https’的远程助手";在 git clone 期间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
build-deps