我无法克隆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


当前回答

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

其他回答

在Mac OS X 10.9 Mavericks上,工作的解决方案如下

rvm pkg install openssl
CC=/usr/local/bin/gcc-4.2 CPP=/usr/local/bin/cpp-4.2 CXX=/usr/local/bin/g++-4.2  rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr

这是在OpenSSL支持下编译Ruby。接下来,卸载所有旧版本。

brew uninstall openssl
brew uninstall curl
brew uninstall git

接下来,安装更新的版本。git安装依赖于CURL的更新版本。

brew install openssl
brew install curl
brew install git

我使用“git://”而不是“https://”,这就解决了问题。我最后的命令是:

git clone --recursive git://github.com/ceph/ceph.git

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

在我的情况下,没有什么是成功的,一段时间后,看看发生了什么,我发现这在我的配置文件。不知道它是怎么来的

% cat ~/.gitconfig 
[user]
    email = xxxxxxx@gmail.com
    name = xxxxxx
[alias]
    g = grep -n -i --heading --break
[url "git+https://github.com/"]
    insteadOf = git@github.com:
[url "git+https://"]
    insteadOf = git://

删除url属性后,一切工作正常

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