目录
一、报错信息
重装系统后,使用以前安装的Git不好用了
14:09:08.160: [xx-parent] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/dev-1:refs/heads/dev-1 --set-upstream --tags fatal: unable to access 'https://github.com/xx/demo.git/' : error setting certificate verify locations: CAfile: E:/01java/Git/mingw64/ssl/certs/ca-bundle.crt CApath: none
二、解决方法1
git安装时位置与现在不一样,本人是重装过一次系统,盘符莫名后移一位D变F
执行下方命令重新配置
git config --system http.sslcainfo "D:\01java\Git\mingw64\ssl\certs\ca-bundle.crt"
三、解决方法2
C:\Program Files\Git\mingw64\etc
四、解决方法3
如果还是不好使,直接卸载默认路径重装,
重新配置idea的Git和上述文件位置
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
有用请点赞,养成良好习惯!
疑问交流鼓励请留言!
error setting certificate verify locations: CAfile: E:/01java/Git/mingw64/ssl/certs/ca-bundle.crt
于 2022-02-18 14:19:51 首次发布