Unable to pull/push in git repository

前端 未结 23 2376
执笔经年
执笔经年 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: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.

提交回复
热议问题