Protocol https not supported or disabled in libcurl using Git

前端 未结 10 2579
深忆病人
深忆病人 2021-02-14 07:56

I have a few github repos and they have been working fine for the last few months.
However, a few days ago I started getting a strange error when trying to push
and pull

相关标签:
10条回答
  • 2021-02-14 08:06

    Solved the problem by removing "git" from the path C:\Program Files\Git\bin

    Best Regards.

    0 讨论(0)
  • 2021-02-14 08:11

    Maybe you have different libcurl.dll versions installed and one of them is overwriting the github one(that does support https).

    I don't know what's your OS, but in windows you have to change the PATH settings, so it will point to the right libcurl.dll (do a libcurl search on c:\ to know where is the github one).

    In my case it was the Pure Data install that messed up with libcurl.dll from github.

    Hope it helps.

    0 讨论(0)
  • 2021-02-14 08:11

    If someone unable to solve the libcurl issue, you can apply this fix

    1. Edit .git/config file under your repo directory
    2. Find url= entry under section [remote "origin"]
    3. Get the ssh url from github for your repository and replace the https url in the config file
    4. Save config file and close it. Now you can use git.
    0 讨论(0)
  • 2021-02-14 08:16

    I had the same error on macos and homebrew. When i tried-> git clone ... the return was:

    fatal: unable to access 'https://github.com/....': Protocol https not supported or disabled in libcurl

    I did:

    rm '/usr/local/bin/git'
    

    as it mentioned on:

    brew link git    
    

    Then i did a git clone again and a keychain popup box appeared and cklicked accept.Then it worked.

    0 讨论(0)
  • 2021-02-14 08:18

    In Windows (10) I was having same issue, in my system even http also didn't worked, I fixed this installing OpenSSL for windows. which I obtained from here

    Hope this will help future visitors fixing the issue in straight forward way.

    0 讨论(0)
  • 2021-02-14 08:19

    This error appears if you install Pure Data, may be it's your case.Here is described conflict between Pure Data and git. Pure Data installer put it's own libcurl-4.dll in system32 folder.

    Even if you didn't install Pure Data there is probably another libcurl-4.dll somwhere in your library path which is loaded before libcurl-4.dll from installed git location.

    0 讨论(0)
提交回复
热议问题