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


当前回答

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

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

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

一切都很顺利。

希望这对你有所帮助。

其他回答

我在Centos 6.6中安装git 2.3.1时使用了这个方法:

I didn't have curl-devel installed (checking for curl_global_init in -lcurl... no). The key was to generate configure script add rpmforge for docboox2x install packages yum install openssl-devel zlib-devel perl-ExtUtils-MakeMaker svn tcl perl-Locale-Msgfmt gettext asciidoc xmlto docbook2x make symlink ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi build git # download latest relase from https://github.com/git/git/releases curl -O -J -L https://github.com/git/git/archive/v2.13.0.tar.gz tar xf git-2.13.0.tar.gz cd git-2.13.0 make configure ./configure --prefix=/usr make all doc make install install-doc install-html

以防有人在QNAP系统或任何其他以OPKG作为包管理器的系统上遇到这种情况:

你需要安装git-http和git。如:

opkg install git-http

在我们的案例中,当我们检查时,问题已经解决了

git --exec-path

指向一条不存在的路。 (它指向我们编译git的路径,而不是我们之后复制的地方,任何人都可以访问它)

我们做了一个:

export GIT_EXEC_PATH=<path_of_/libexec/git-core/>

和解决。

工作

1-我必须删除git:

sudo apt-get remove git

2-重新安装后缀为-all的git:

sudo apt-get install git-all

如此处所教:https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

3-检查我的github帐户的所有设置(用户名和电子邮件)

顺便说一下,我弄错了那封好邮件,这是我错误的来源;) https://github.com/settings/profile 检查你的用户名 https://github.com/settings/emails 检查你的电子邮件是一个很好的方法

4-我在这里遵循了git的教程

https://help.github.com/articles/connecting-to-github-with-ssh

在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