Unable to pull/push in git repository

前端 未结 23 2152
执笔经年
执笔经年 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:14
     git config --global http.sslverify "false" 
    
    • will solve the problem after that Pop-up window appear to enter your username and password make sure valid .
    0 讨论(0)
  • 2020-12-08 07:15

    In version 2.x of git-bash The path to the .crt has changed to ../Git/mingw64/ssl/certs/ca-bundle.crt. I had to update this manually in git-bash with

     git config --global http.sslcainfo "/path/to/Git/mingw64/ssl/certs/ca-bundle.crt"
    
    0 讨论(0)
  • 2020-12-08 07:15

    I got the same error in Windows 7. Found that the certificate path referred in the error was not existing. Instead of ...\mingw32\usr\ssl... the cert file was in ...\mingw2\ssl... So I created a usr folder manually and moved the entire ssl tree into usr. This fixed the issue.

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

    Thanks to https://github.com/npm/npm/issues/1484
    git config --global http.sslverify "false" will solve the problem

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

    I've got the same error message but in my case it was because I've changed github settings to use ssh instead of https.

    And the repository with the problem was cloned with https after removing the remote and re-adding it with ssh it's working as expected.

    $git remote remove origin
    $git remote add origin git@github.com:UserName/repo.git
    

    Then git remote show origin is correctly showing the remote.

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