报错: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"   

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

猜你喜欢

转载自www.cnblogs.com/wenm1128/p/12408465.html