Follow the instructions below to force all files to be checked out as LF, especially in Windows.
- Create
.gitattributesfile in the root directory of the project, if one does not exist. - Add the following line to the file
* text=auto eol=lf - Run the following command to remove all Git caches (mind the trailing
., it indicates current path)git rm --cached -r . - Checkout everything again
git reset --hard