Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
518 views
in Technique[技术] by (71.8m points)

linux - "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

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It looks like not having (lib)curl-devel installed when you compile git can cause this.

If you install (lib)curl-devel, and then rebuild/install git, this should solve the problem:

$ yum install curl-devel
$ # cd to wherever the source for git is
$ cd /usr/local/src/git-1.7.9  
$ ./configure
$ make
$ make install

This worked for me on Centos 6.3.

If you don't have yum, you can download the source to curl-devel here:


If you are running Ubuntu instead:

sudo apt-get install libcurl4-openssl-dev 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...