git error:【fatal: unable to access 'https://github.com/userId/prjName.git/': err or setting certificate verify locations:】


$ git pull origin master
fatal: unable to access 'https://github.com/userId/prjName.git/': err or setting certificate verify locations:
CAfile: E:/【3】ProgramFiles/Git/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none

 本地git證書位置有誤。

 

  •    找不到,可能是移動過Git存放目錄或者是改動過目錄名。
  •    對着報錯的【CAfile: E:/【3】ProgramFiles/Git/Git/mingw64/ssl/certs/ca-bundle.crt】查找 ca-bundle.crt 的正確的本地path

 

  # 執行命令:git config --system http.sslcainfo "${realPath}"
  $ git config --system http.sslcainfo "E:/ProgramFiles/Git/Git/mingw64/ssl/certs/ca-bundle.crt"

   

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


免責聲明!

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



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