Unable to pull/push in git repository

前端 未结 23 2151
执笔经年
执笔经年 2020-12-08 06:15
$ git pull origin master
fatal: unable to access \'https://xxxxxxxxxxxxxxx\': 
      error setting certificate verify locations:
CAfile: C:/Users/abc/AppData/Local/P         


        
相关标签:
23条回答
  • 2020-12-08 07:03

    Try this

    git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"
    

    or

    Switch off your SSL by running this command

    git config --system http.sslverify false
    
    0 讨论(0)
  • 2020-12-08 07:03

    This will do the work while moving from GIT 2.x clients to 2.5.x:

    Looks like after installing a new version of GIT client, it changes the path it looks for certificates from something like this:

    C:\Program Files\Git\mingw64
    

    to something like this:

    C:\Program Files\Git\mingw64\libexec
    

    To fix this, just copy the 'ssl' folder to the new location and it'll work like a charm!

    0 讨论(0)
  • 2020-12-08 07:04

    For future readers:

    I was having this problem after installing devel packages on cygwin.

    I tried all of the fixes in this thread but nothing was working

    Then, I ran into this thread on github

    What I did was I found where CAPATH was being specified in gitconfig, and I deleted that https specification, and it solved my issue.

    0 讨论(0)
  • 2020-12-08 07:05

    If your git version is 2.8.1.windows.1,this may help you. First , you need to locate your git home directory,mine is D:\SDK\Git.Just in the same directory,you can find folder "usr",open it and goes to \ssl\certs,you can find the certificate:ca-bundle.crt.

    Then open console,execute:
    git config --system http.sslcainfo "D:\SDK\Git\usr\ssl\certscabundle.crt"

    0 讨论(0)
  • 2020-12-08 07:07

    I had the same error and I fixed it reinstalling git in the default path:

    C:\Program Files\Git

    That's all

    0 讨论(0)
  • 2020-12-08 07:08

    Current Git for Windows build (2.18.0.windows.1) has a bug -- if the http.sslcainfo is not set it expects to find the certificate store in C:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt.

    Certificate store is actually installed to C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt so to fix that you must specify the proper path.

    Furthermore, the SCHANNEL implementation is also broken in this build.

    Finally, Git credential manager is also broken because if you have CI/CO credentials stored from gitlab-runner installation it will fail to clone/push/pull with access denied error instead of prompting for different credentials.

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