git error: cannot handle https
Solution 1
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
Solution 2
Fixed this problem for Git 1.7.9 on Windows. Seemed to happen with many GIT instantiations on Windows. Had to do with the url not being properly escaped in the command line.
Solution: Put the git repository URL in single quotes 'https://.......'
Solution 3
I have same problem but the reason was in my configuration of my .git. I changed config file as follows:
.git/config
enter code here[remote "heroku"]
url = [email protected]:rocky-bayou-4315.git
fetch = +refs/heads/*:refs/remotes/heroku/*
rocky-bayou-4315 is my heroku application that has been created by $ heroku create
command.
dementrock
Updated on June 24, 2022Comments
-
dementrock almost 2 years
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
-
Dave G about 13 yearswhich version of ubuntu are you running? which version of git?
-
Sylvain Defresne about 13 yearsCould you paste your error message ? And output of git --version ?
-
Lars Noschinski about 13 yearsVersion 0.99.9i is really old (2005 or so); it probably does not support https yet. You should consider upgrading to 1.7.something
-
Nubzor about 12 yearssame issue with
git version 1.7.6
... any solutions? I guess the upgrade to newer version did not help.
-
-
dementrock about 13 yearsThanks, I have edited the PATH to update my git but the problem's still there; now the version is 1.7.4 and I got the error fatal: Unable to find remote helper for 'https'
-
Cascabel about 13 years@dementrock: You didn't by any chance build git with one prefix,
make install
it there, then move it somewhere else, did you? -
dementrock about 13 years@Jefromi I guess you are right. Seems that it works now. Thanks
-
Nubzor about 12 yearssame issue with
git version 1.7.6
... were you able to clone via https? Above you show git version not successful clone via https .... -
Nur Amsyari over 10 yearsThis also fixed it for me with Git 1.7.1 on linux.
-
ksclarke about 10 yearsAlso, fixed it for me but I had to use double quotes. I was using from within Cygwin.
-
astrojuanlu over 8 yearsDouble quotes worked for me with
git version 2.6.4.windows.1
-
DSoldo over 7 yearsAlso for me with Windows 7 and Git 2.10.1.windows.1 only double quotes worked!
-
altroware over 6 yearsworked for me with Cygwin, also had to amend the url in
.git/config
.