0


git pull 报 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
标签: 服务器 运维

本文转载自: https://blog.csdn.net/wxb880114/article/details/128949879
版权归原作者 瓦哥架构实战 所有, 如有侵权,请联系我们删除。

“git pull 报 TLS certificate verification has been disabled!”的评论:

还没有评论