Recently I fiddled around with gits option core.autocrlf und set it to input. I tested if the configuration parameter is set correctly:
$ git config --global core.autocrlf
input
$ git config core.autocrlf
input
Then to test gits behavior I deleted all contents of the project folder (except of course the folder .git) and made a
git reset --hard HEAD
But my editor tells me, the line endings ares still CRLF.
Why?
(I am on Ubuntu and use Atom as editor. The editors statement seems to be valid, as when I tell it to change all line endings to LF, git tells me that every line of the file was changed.)
To understand more about the whole topic i read this enlighting article: