git出现“The file will have its original line endings in your working directory”错误

一、现象:

git add *时出现如下现象:

The file will have its original line endings in your working directory

解决:

Gitshell中输入如下命令解决:

git config --global core.autocrlf false

git的家目录下面的config文件修改也可以:

[core]
repositoryformatversion =
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
longpaths = true
autocrlf = false
上一篇:Git提交时提示‘The file will have its original line endings in your working directory’


下一篇:warning: LF will be replaced by CRLF in ***. The file will have its original line endings in your working directory.