報錯:error setting certificate verify locations: CAfile

github上傳自己的代碼報錯

fatal: unable to access 'https://github.com/wenm1128/auto.git/': error setting certificate verify locations:
CAfile: D:/Git/anz/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none

 

 

 

解決:

輸入:git config --system http.sslverify false命令

 

 

 

另一種解決方法:

先打開git bash窗口 
執行命令:

git config --system http.sslcainfo "D:/Git/anz/Git/mingw64/ssl/certs/ca-bundle.crt"   

//引號中的內容根據報錯提示中的文件名和路徑來改成自己的

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章