"Unable to find remote helper for 'https'" during git clone

I am unable to clone HTTPS repositories. I can clone SSH repos fine, but not HTTPS repos. I cannot test the GIT protocol since I am behind a corporate firewall.

This is what I am trying to do:

$ git clone https://github.com/nvie/gitflow.git
Cloning into gitflow...
fatal: Unable to find remote helper for 'https'

I have so far tried the following (based on Google searches)

  • Purging and installing Git through apt-get
  • Installing build-deps for Git through apt-get
  • Installing curl dev libraries
  • Installing expat libraries
  • Downloading Git source and building using:
    • ./configure --prefix=/usr --with-curl --with-expat
    • Also tried pointing configure at curl binary (./configure --prefix=/usr --with-curl=/usr/bin/curl)

I have tried everything I can find on the internet with no luck. Can anyone help me?

Git version = 1.7.6.4

OS = Ubuntu 11.04

If you are trying to clone then you could use the git transport

For example: git clone git://github.com/fog/fog.git

Vaio ~/Myworks/Hero $ git clone git://github.com/fog/fog.git

Initialized empty Git repository in /home/nthillaiarasu/Myworks/Hero/fog/.git/
remote: Counting objects: 41138, done.
remote: Compressing objects: 100% (13176/13176), done.
remote: Total 41138 (delta 27218), reused 40493 (delta 26708)
Receiving objects: 100% (41138/41138), 5.22 MiB | 58 KiB/s, done.
Resolving deltas: 100% (27218/27218), done

I used "git://" instead of "https://" and that solved the problem. My final command was:

git clone --recursive git://github.com/ceph/ceph.git

Just in case someone encounters this on a QNAP system or any other system with OPKG as package manager:

You need to install git-http along with git. Like:

opkg install git-http

On CentOS 5.x, installing curl-devel fixed the problem for me.

Comments
  • Sorry to be obvious, it sounds like curl isn't installed. do curl --help and see if it is.
  • I am getting back a list of curl options when I run curl --help.
  • I know, like I mentioned at the top of my question, I've gone through every result I can find in Google. Nothing has worked so far!
  • I have the same issue. I'm behind a corporate firewall too. I tried to recompile with all the options found in Internet, but not work at all. Any other idea?
  • Funny thing is, I'm trying to clone from curl's github so that I can compile it on a locked-down $&#%^* Solaris box.
  • these steps worked for me. CentOS 5.8 32 bit ;git version 1.8.0
  • Worked for me CentOS 6.4 and git 1.8.2.1
  • On Ubuntu 12.04 LTS the package I needed was: sudo apt-get install libcurl4-openssl-dev
  • On Ubuntu 10.04 LTS the package I needed was: sudo aptitude install libcurl4-openssl-dev apt-get has dependency problem and aptitude seems can resolve it
  • I had this problem because I was working on git itself, and had done a "make install" into my ~/bin directory. My PATH picked up ~/bin/git which encountered the error. Using /usr/bin/git solved the problem.
  • Thanks for your advice. Unfortunately I work behind a corporate firewall that blocks the git protocol's port and they won't open it up for me. I've been downloading tarballs to bypass the issue, but I would really like to get my install of git working properly!
  • As others have mentioned, git:// isn't usually ideal, but apparently if you are in a situation in which https:// simply won't work, you can use git config --global url."git://".insteadof https:// to force git to always use git:// instead of https://. This can be useful if you are trying to clone with submodules (e.g. with --recursive).
  • Perfect. I couldn't install anything on my QNAP cloud but this worked like a charm!
  • This is a workaround, not a solution. It will work for repos but not for gists, and not for the OP due to his corporate firewall.