after using command: git checkout -- filename, git status still tell me the content has been changed, and I checked that file, it has one more line at the end.
Asked
Active
Viewed 39 times
1 Answers
0
Check first if git config core.autocrlf
is set to true
or native
.
That could trigger an automatic EOL (end-of-line) conversion.
A git ls-files --eol -- filename
can also help checking if an attribute directive (if you have a .gitattributes
in your repository) is applied.

VonC
- 1,262,500
- 529
- 4,410
- 5,250