$ git add readme.txt
warning: LF will be replaced by CRLF in readme.txt.
The file will have its original line endings in your working directory
修改完后git add会提示这个warning。。但再一次同样操作就正常没有提示了。
设置git config --global core.autocrlf false,不允许自动更换或者Vscode右下角LF设置自己调整为CRLF
Sign in to make a reply
T-Mac_Dale
$ git add readme.txt
warning: LF will be replaced by CRLF in readme.txt.
The file will have its original line endings in your working directory
$ git add readme.txt
修改完后git add会提示这个warning。。但再一次同样操作就正常没有提示了。