Published on

Git报错:TLS certificate verification has been disabled

标签:Git

在执行git pull命令时,突然弹出了一个错误

warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information. 
warning: ----------------- SECURITY WARNING ----------------
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information. 

这时需要重启TLS证书验证,在控制台执行命令

git config --global http.sslVerify true

重新执行git pull错误就消失了。