git error:【fatal: unable to access 'https://github.com/userId/prjName.git/': err or setting certificate verify locations:】

$ git pull origin master
fatal: unable to access 'https://github.com/userId/prjName.git/': err or setting certificate verify locations:
CAfile: E:/【3】ProgramFiles/Git/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none

 本地git证书位置有误。

  • 找不到,可能是移动过Git存放目录或者是改动过目录名。
  • 对着报错的【CAfile: E:/【3】ProgramFiles/Git/Git/mingw64/ssl/certs/ca-bundle.crt】查找 ca-bundle.crt 的正确的本地path
  # 执行命令:git config --system http.sslcainfo "${realPath}"
  $ git config --system http.sslcainfo "E:/ProgramFiles/Git/Git/mingw64/ssl/certs/ca-bundle.crt"

  

参考:
git提示error setting certificate verify locations解决办法

上一篇:fatal: unable to access 'https://xxxxx': SSL connect error


下一篇:github FATAL:unable to access 'https://github.com/...: Failed to connect to github.com:443; No error