“无法找到'https'的远程助手”在git克隆 [英] "Unable to find remote helper for 'https'" during git clone
问题描述
我无法克隆HTTPS存储库。我可以很好地克隆SSH回购,但不能HTTPS回购。我无法测试GIT协议,因为我在企业防火墙后面。
这就是我想要做的:
$ git clone https://github.com/nvie/gitflow.git
克隆到gitflow中...
致命:无法找到远程助手'https'
到目前为止,我尝试了以下内容(基于Google搜索)
- 通过
apt-get
清除并安装Git - 安装
build-deps
通过apt-get
- 安装curl开发库
- 安装expat库
- 使用以下命令下载Git源代码和构建:
-
./ configure --prefix = / usr --with-curl --with-expat
- 尝试在curl binary(
./ configure --prefix = / usr --with-curl = / usr / bin / curl
)
-
我尝试了所有可以在互联网上找到的东西h没有运气。任何人都可以帮助我吗?
Git版本= 1.7.6.4
OS = Ubuntu 11.04
当编译git时,看起来没有安装(lib)curl-devel可能会导致此问题。
如果你安装(lib)curl-devel,然后重新编译/安装git,这应该可以解决问题:
$ yum install curl-devel
$#cd到git的源码
$ cd /usr/local/src/git-1.7.9
$ ./configure
$ make
$ make install
这在Centos 6.3上适用于我。
如果你没有yum,你可以在这里下载源代码curl-devel:
如果您正在运行Ubuntu,请执行以下操作:
sudo apt-get install libcurl4-openssl-dev
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.
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)
- Purging and installing Git through
apt-get
- Installing
build-deps
for Git throughapt-get
- Installing curl dev libraries
- Installing expat libraries
- Downloading Git source and building using:
./configure --prefix=/usr --with-curl --with-expat
- Also tried pointing configure at curl binary (
./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
OS = Ubuntu 11.04
It looks like not having (lib)curl-devel installed when you compile git can cause this.
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
This worked for me on Centos 6.3.
If you don't have yum, you can download the source to curl-devel here:
If you are running Ubuntu instead:
sudo apt-get install libcurl4-openssl-dev
这篇关于“无法找到'https'的远程助手”在git克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!