git 提示error setting certificate verify locations 解決方案


問題:使用git extension 拉取或者push代碼,提示

"C:\Program Files\Git\bin\git.exe" pull --progress "origin" +refs/heads/zjw
fatal: unable to access 'https://github.com/**/': error setting certificate verify locations:

CAfile: C:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
CApath: none
Done

Press Enter or Esc to close console...

這是因為git 提交代碼時需要安全認證,可以通過以下方法設置,取消驗證

解決:

找到 git的config 配置文件,路徑應該在 
C:\ProgramData\Git\config ,添加下面兩行

[http]
    sslVerify = false
    sslCAinfo = /bin/curl-ca-bundle.crt

保存后,再提交代碼就可以了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM