Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git error: cannot handle https

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

like image 465
dementrock Avatar asked Mar 31 '11 13:03

dementrock


People also ask

How do I fix error failed to push some refs to Origin?

We can fix the error: failed to push some refs to [remote repo] error in Git using the git pull origin [branch] or git pull --rebase origin [branch] commands. In most cases, the latter fixes the error.

Why is my Git push failing?

failed to push some refs to errors are often caused when changes are not committed before pushing, issues with Git pre-push hook, incorrect branch name, or the local repository not being in sync with the Git repository.

How do you fix fatal could not read from remote repository please make sure you have the correct access rights and the repository exists?

The Git “fatal: Could not read from remote repository” error occurs when there is an issue authenticating with a Git repository. This is common if you have incorrectly set up SSH authentication. To solve this error, make sure your SSH key is in your keychain and you connecting to a repository using the correct URL.

How do I get access to Git rights?

Open Project settings>Repositories. To set the permissions for all Git repositories, choose Security. For example, here we choose (1) Project settings, (2) Repositories, and then (3) Security. Otherwise, to set permissions for a specific repository, choose (1) the repository and then choose (2) Security.


2 Answers

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://.......'

like image 53
Karl Avatar answered Oct 03 '22 10:10

Karl


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
like image 31
Sylvain Defresne Avatar answered Oct 03 '22 11:10

Sylvain Defresne