錯誤信息
使用TortoiseGit執行pull命令時顯示
git.exe pull --progress --no-rebase -v "origin"
fatal: unable to access 'https://*******/': error setting certificate verify locations:
CAfile: D:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
原因
換電腦直接加裝了原來的硬盤,盤符從D變成了G,所以證書路徑不對了
解決方法
先打開git bash窗口
執行命令:
git config --system http.sslcainfo "G:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt"
(注意修改為正確的文件路徑)或
git config --system http.sslverify false
————————————————