问题:使用git extension 拉取或者push代码,提示:

"C:\Program Files\Git\bin\git.exe" pull --progress "origin" +refs/heads/zjw
fatal: unable to access 'https://github.com/**/': error setting certificate verify locations:

CAfile: C:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
CApath: none
Done

Press Enter or Esc to close console...

这是因为git 提交代码时需要安全认证,可以通过以下方法设置,取消验证

解决:

找到 git的config 配置文件,路径应该在
C:\ProgramData\Git\config ,添加下面两行

[http]
    sslVerify = false
    sslCAinfo = /bin/curl-ca-bundle.crt

保存后,再提交代码就可以了。

本文转载自 零柒夭夭 的博客:https://www.cnblogs.com/lqyy/p/9488970.html
感谢原博主分享。

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐