git错误:无法处理https [英] git error: cannot handle https
问题描述
当我尝试使用git clone https:// xxx 时,出现以下错误:
I不处理协议'https'
任何人都可以帮我吗?
完整信息:
克隆到innostaa ...
致命:无法找到'https'的远程助手
dementrock @ dementrock-A8Se:〜$ git --version
git 1.7.4
0.99.9i
可能不支持 https
协议。 尝试安装更新版本的 git
。最简单的解决方案是通过 apt-get
安装它:
$ apt-get update
$ apt-get install git
之后检查是否正确使用版本:
$ hash -r
$哪个git
/ usr / bin / git
如果返回的字符串不是 / usr / bin / git
,那么在你的 PATH
中有另一个旧版本的 git
,它掩盖了最近的版本。删除它。
如果您不想安装 git
通过 apt-get
,或者如果您的机器上没有管理员权限,则可以从源代码构建它。您可以从git 网站下载它们,编译应该如下简单:
$ tar -xvfj git-1.7.4.2.tar.bz2
$ cd git-1.7.4.2
$ ./configure - -prefix = $ HOME / install
$ make&& make install
之后,您必须添加 $ HOME / install / bin
到您的 PATH
。
$ hash -r
$ PATH =$ HOME / install / bin:$ {PATH}
$ git --version
git version 1.7.4.2
when I tried to use git clone https://xxx I got the following error
I don't handle protocol 'https'
Could anyone please help me?
full message:
dementrock@dementrock-A8Se:~$ git clone https://git.innostaa.com/innostaa.git
Cloning into innostaa...
fatal: Unable to find remote helper for 'https'
dementrock@dementrock-A8Se:~$ git --version
git version 1.7.4
Version 0.99.9i
of git
probably does not support https
protocol.
Try to install a more recent version of git
. The easiest solution would be to install it via apt-get
:
$ apt-get update
$ apt-get install git
After that check that the correct version is used:
$ hash -r
$ which git
/usr/bin/git
If the returned string is not /usr/bin/git
, then you have another older version of git
in your PATH
that is masking the more recent one. Remove it.
If you do not want to install git
via apt-get
or if you do not have administrator privilege on your machine, you can built it from source. You can download them from git website, and compilation should be as simple as:
$ tar -xvfj git-1.7.4.2.tar.bz2
$ cd git-1.7.4.2
$ ./configure --prefix=$HOME/install
$ make && make install
After that, you'll have to add $HOME/install/bin
to your PATH
.
$ hash -r
$ PATH="$HOME/install/bin:${PATH}"
$ git --version
git version 1.7.4.2
这篇关于git错误:无法处理https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!