git提示error setting certificate verify locations解決辦法

作者:星辰網絡工作室 日期:2021-05-20 瀏覽:1513

錯誤信息

使用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

————————————————



香港三级日本三级人妇三级四