git提示error setting certificate verify locations解决办法

错误信息

使用TortoiseGit执行pull命令时显示

git.exe pull --progress --no-rebase -v "origin"

fatal: unable to access 'https://github.com/konsumer/arduinoscope.git/': error setting certificate verify locations:
CAfile: D:\Program Files\Git\mingw64/bin/curl-ca-bundle.crt
CApath: none
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5

Git version 2.9.2.windows.1

解决方法

先打开git bash窗口 
执行命令:

git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"
  • 1
  • 1

(注意修改为正确的文件路径)或

git config --system http.sslverify false
  • 1
  • 1

我使用git config --system http.sslverify false命令解决问题。

参考文章

Github: error cloning my private repository

猜你喜欢

转载自blog.csdn.net/leishenop/article/details/70175535