【已解决】error setting certificate verify locations: CAfile: C:/Program Files/Git/mingw64/etc/ssl

1、问题描述

git黑窗口报错“error setting certificate verify locations”,意思就是证书位置设置错误。

fatal: unable to access 'https://github.com/goSilver/daydayup.git/': error setting certificate verify locations:
  CAfile: D:/dev/Git/mingw64/ssl/certs/ca-bundle.crt
  CApath: none

2、问题分析

git的配置文件里的路径和实际的路径不一致了,故报错证书位置设置错误。

3、解决方法

  1. 重新设置git配置文件路径:(推荐)
git config --system http.sslcainfo "D:\_dev\Git\mingw64\ssl\certs\ca-bundle.crt"

  1. 关闭证书校验:
git config --system http.sslverify false 

猜你喜欢

转载自blog.csdn.net/m0_56190554/article/details/130242753