3、git warning: TLS certificate verification has been disabled

发布时间 2023-06-14 18:37:58作者: 贝壳里的星海

git warning: 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: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.

解决

发现应该是缺少了安全认证

在项目路径下,执行以下命令

git config --global http.sslVerify true

参考资料:

https://blog.csdn.net/xxwwh/article/details/119841089