I\'m experiencing the same issues as in this question: git status shows modifications, git checkout --
Git continues to show wor
Check if you have no .gitattributes file
As mentioned in the "Effect" section of the gitattributes man page, those files can also have an effect on eol and automatic transformation:
text ^^^^^^
This attribute enables and controls end-of-line normalization.
When a text file is normalized, its line endings are converted toLFin the repository.
To control what line ending style is used in the working directory, use the eol attribute for a single file and thecore.eolconfiguration variable for all text files.
Check also your config for core.eol, as mentioned in "How line ending conversions work with git core.autocrlf between different operating systems".