git config --global core.eol lf
git config --global core.autocrlf input
Make sure all local files are recreated with the correct line-endings
git checkout-index --force --all
or remove everything from local copy and update them
git rm --cached -r .
git reset --hard