【转】Git 报错:TLS certificate verification has been disabled!

 使用 Git 时遇到报错:TLS certificate verification has been disabled!

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. 

解决方法:

git config --global http.sslVerify true

在 git pull 后 warning 消失

参考:https://www.jianshu.com/p/c05a1ef1aa93

posted on 2023-01-17 15:40  z5337  阅读(2754)  评论(0)    收藏  举报