1) Remove every file from Git’s index.
git rm --cached -r .
2) Rewrite the Git index to pick up all the new line endings.
git reset --hard
Source: https://www.xspdf.com/help/52265711.html
Disable Line Ending Conversions
git config --global core.autocrlf false