Remember once git fatal:unable to find remote helper for ' https ' problem resolution

Source: Internet
Author: User

Log on to a remote Linux server, use Git, clone "fatal:unable to find remote helper for ' https '" wrong, no tube, bypass, use Git clone git://.... The agreement download down the project.

But until the submission to push back to the server, you have to use HTTPS, search the problem, is not curl in the system, are to install curl, such as:

Yum Install Curl-devel

or Apt-get, etc.

But what if the problem is that the remote server does not have sudo to root permissions?

To install curl yourself, download from http://curl.haxx.se/download.html to the latest Curl package:

Curl-7.41.0.tar.gz

Unzip, then make and install:

./configure--prefix=/home/{username}/curl/

Make

Make install

After installing, try git push again, or report the same error.

Think of the need to recompile and install Git to execute:

./configure--prefix=/home/{username}/git/--with-curl=/home/{username}/curl/

Note that it is important to use the--with-curl parameter to specify the Curl directory installed above, and git can only use HTTPS if it has a link to the Curl Library.

Make & make install again

git push succeeded.

Lessons learned from this problem solving:

In fact, it is used first when recompiling./configure--prefix=/home/{username}/git/before thinking, execution./configure--prefix=/home/{username}/git/& > config.log, redirect log to this file to open, search curl, found that the status of Curl is no, indicating that the configure did not find curl, then the natural back in make when the link can not be completed, and then./configure -H, see the--with-curl parameters, think of the need to specify, only to solve the problem.

Experience is the lesson is to meet the problem or to think about the principle, the Internet search articles are rooted under the premise of the system can be installed in the default location of the scheme, do not want the principle, in addition to observe the log, to help understand the problem.

Reference Link: Http://stackoverflow.com/questions/8329485/git-clone-fatal-unable-to-find-remote-helper-for-https

Remember once git fatal:unable to find remote helper for ' https ' problem resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.