Git Repos to LF
Firstly lets make sure that everything line of code that you commit is unix compatible, since all of it mostly runs on Unix based servers. Hence do the following
git config --global core.autocrlf input
git config --global core.eol lf
If you don’t know where to make the changes, since the gitconfig files are all over the place, find the source of the file using
git config --list --show-origin
Then go to those files and change the settings for autocrlf and eol.