You can add and commit a .gitattributes
file which sets eol=crlf
for the files of types your require to have Windows EOLs (like *.cs
, *.*proj
etc).
Or may be just set
* text=auto
in that file to have LFs in the repository and whatever your users wish in their work trees.
The exact approach depends on what is already in your repository.
By the way, the comments block in the .gitattributes
file from the Mono project is particularly insightful about the EOL-normalization issues across different platforms.