git clone出现SSL错误

时间:2021-09-26 21:20:34

在学习git的时候,发现不能使用git clone从github.com下载,报了个ssl错误。

Cloning into cancan...

error: SSL certificate problem, verify that the CA cert is OK. Details:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/ryanb/cancan.git/info/refs

fatal: HTTP request failed

在网上找了一下,比较简单的解决办法:

在运行中输入:CMD→回车打开命令提示符窗口

git config --global http.sslVerify false