我无法克隆HTTPS存储库。我可以克隆SSH回购很好,但不是HTTPS回购。我无法测试GIT协议,因为我位于公司防火墙后面。

这就是我要做的:

$ git clone https://github.com/nvie/gitflow.git
Cloning into gitflow...
fatal: Unable to find remote helper for 'https'

到目前为止,我尝试了以下(基于谷歌搜索)

通过apt-get清洗和安装Git 通过apt-get为Git安装build-deps 安装curl开发库 安装外派库 下载Git源代码并使用以下方法构建: ./configure——prefix=/usr——with-curl——with-expat 还尝试在curl binary(。——prefix=/usr——with-curl=/usr/bin/curl)

我已经试遍了我在网上能找到的所有东西,但都没有成功。有人能帮帮我吗?

转到版本 = 1.7.6.4

操作系统 = Ubuntu 11.04


当前回答

我在使用capistrano部署rails应用程序时遇到了这个问题。问题是我的用户在cpanel中只有一个监禁的shell访问。将其更改为正常的shell访问修复了我的问题。

其他回答

如果你试图克隆,那么你可以使用git传输

例如:git克隆git://github.com/fog/fog.git

Vaio ~/Myworks/Hero $ git clone git://github.com/fog/fog.git

Initialized empty Git repository in /home/nthillaiarasu/Myworks/Hero/fog/.git/
remote: Counting objects: 41138, done.
remote: Compressing objects: 100% (13176/13176), done.
remote: Total 41138 (delta 27218), reused 40493 (delta 26708)
Receiving objects: 100% (41138/41138), 5.22 MiB | 58 KiB/s, done.
Resolving deltas: 100% (27218/27218), done

我有同样的问题和简单的解决它。

只需卸载git并重新安装即可。

#apt-get remove --purge git-svn git-core
#rm /usr/local/bin/git
#apt-get install git-svn git-core

一切都很顺利。

希望这对你有所帮助。

我在使用TortoiseGit时在Windows上得到了这个错误。重新安装Git for Windows,并通过重新运行第一次开始向导告诉TortoiseGit Git .exe的路径,解决了这个问题。

看起来在编译git时没有安装(lib)curl-devel会导致这种情况。

如果你安装(lib)curl-devel,然后重新构建/安装git,这应该可以解决问题:

$ 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上很适用。

如果你没有yum,你可以在这里下载源代码来curl-devel:

http://curl.se/dlwiz/?type=devel


如果你运行的是Ubuntu:

sudo apt-get install libcurl4-openssl-dev 

我在这个远程助手问题上遇到了很多问题。我确保我已经安装了所有的expat, curl等,但在发现4.4.4版本是duff后,最终通过更新gcc解决了这个问题。刚刚进行了yum更新,并使用4.4.6重新编译。