今天使用GIT的时候遇到一个问题(很奇怪,之前咋没出现这个问题呢)

出错代码

1
2
3
error setting certificate verify locations:
CAfile: F:/gitt/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none

看到这么多字母,小编表示一脸懵逼,还好有度娘,搜索结果第一页就顺利找到答案,下面把解决方法写下来载入史册(O(∩_∩)O哈哈~)

解决方法

1
$ git config --system http.sslcainfo "D:\git\Git\mingw64\ssl\certs\ca-bundle.crt