https://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf
To go from CRLF to LF
– git config --global core.autocrlf false # per-user solution
– git config --local core.autocrlf false # per-project solution
If you already have checked out the code, the files are already indexed. After changing your git settings you should refresh the indexes with
- git rm --cached -r .
and re-write git index with
- git reset --hard