git error: cannot handle https git error: cannot handle https linux linux

git error: cannot handle https


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


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 --versiongit version 1.7.4.2


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 = git@heroku.com: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.