当我使用 git 命令"git push -u origin master"时失败,消息如下:
fatal: unable to access 'https://github.com/BookShell527/BookShell527.github.io.git/': error setting certificate verify locations:
CAfile: D:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
有人有解决方案吗?
试试这个命令
git config http.sslCAinfo "/D/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt"
不要忘记确保文件是否存在于上述定义的路径中ca-bundle.crt
如果上述文件不存在,则上述命令将不起作用
确保文件是否存在的命令
cd d/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
如果上述命令对您不起作用,那么您可以使用此命令来解决您的问题,但这只是一个临时解决方案
git config --global http.sslverify "false"