“Unable to find remote helper for 'https'”

2019-01-03 00:47发布

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

标签: linux git ubuntu
22条回答
该账号已被封号
2楼-- · 2019-01-03 01:24

I had same problem and simple to resolve it.

Just uninstall git and re-install it.

#apt-get remove --purge git-svn git-core
#rm /usr/local/bin/git
#apt-get install git-svn git-core

and everything works well.

Hope this help.

查看更多
戒情不戒烟
3楼-- · 2019-01-03 01:27

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
查看更多
Ridiculous、
4楼-- · 2019-01-03 01:29

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

git clone --recursive git://github.com/ceph/ceph.git
查看更多
Rolldiameter
5楼-- · 2019-01-03 01:29

On Mac OS X 10.9 Mavericks, the solution that worked is as follows

rvm pkg install openssl
CC=/usr/local/bin/gcc-4.2 CPP=/usr/local/bin/cpp-4.2 CXX=/usr/local/bin/g++-4.2  rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr

This is to compile Ruby with OpenSSL Support. Next, uninstall all the old versions.

brew uninstall openssl
brew uninstall curl
brew uninstall git

Next, install the updated versions. The git installation is dependent on an updated version of CURL.

brew install openssl
brew install curl
brew install git
查看更多
我想做一个坏孩纸
6楼-- · 2019-01-03 01:30

I got the same problem today: git http broken after years of happy service. It seems caused by some Perl lib updates. Tried some sane suggestions on web, none worked. Had enough, I just removed all git stuff, got a new tarball from http://git-scm.com/, compiled and installed, and all things are back to normal. Give it try, or you can go dig deep into your logs...

查看更多
Evening l夕情丶
7楼-- · 2019-01-03 01:30

I got this error on Windows while using TortoiseGit. Reinstalling Git for Windows and telling TortoiseGit the path to git.exe by re-running the First Start Wizard fixed it.

查看更多
登录 后发表回答