触发条件:
将本地git项目从F盘移到E盘,git安装路径也从F盘移到E盘,之后触发git项目代码提交push,提示以下问题:
fatal: unable to access 'https://github.com/fangyana/**.git/': error setting certificate verify locations:
CAfile: F:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt
CApath: none
解决方法:
打开 GIT BASH HERE 窗口,在窗口命令行,输入git安装的新路径,如下:
ww@DESKTOP-197LNN3 MINGW64 /e/Program Files/**
$ git config --system http.sslcainfo "E:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt"
回车后,重新push代码信息,即可。