当前位置:   article > 正文

git pull 报 TLS certificate verification has been disabled!_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/gcm/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/gcm/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/gcm/tlsverify for more information.
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
Already up to date.
 

需要执行以下命令

git config --global http.sslVerify false

一、错误原因

原因就是存在符号转义问题
Windows 中的换行符为 CRLF, 而在 Linux 下的换行符为 LF
所以,使用 add . 时,会出现提示

二、解决方案

在 Git 下处理"换行"(line ending)
core.autocrlf 是 git 中负责处理 line ending 的变量,可以设置3个值:true、false、input
将它设置成 false,line endings 将不做转换操作。文本文件保持原样

git config --global core.autocrlf false

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/860598
推荐阅读
  

闽ICP备14008679号