Discuss / Git / 这是什么问题?

这是什么问题?

Topic source

T-Mac_Dale

#1 Created at ... [Delete] [Delete and Lock User]

$ 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。。但再一次同样操作就正常没有提示了。

设置git config --global core.autocrlf false,不允许自动更换或者Vscode右下角LF设置自己调整为CRLF


  • 1

Reply