报错:error setting certificate verify locations: CAfile: D:/Git/anz/Git/mingw64/ssl/certs/ca-bundle.crt CApath: none

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"   

//引号中的内容根据报错提示中的文件名和路径来改成自己的

 

posted @ 2020-03-13 14:47  随★风  阅读(3123)  评论(1编辑  收藏  举报