I share a git repository with many people and we are currently finding it difficult to get the desired line ending function. What we would like to happen:
- All files on the repository are stored with LF line endings
- When a Mac user pulls/clones/pushes, everything remains the same
- When a Windows user pulls/clones, everything is converted to CRLF with the exception of .scr files
- When a Windows user pushes, everything is converted to LF (see first bullet)
I've tried a couple different .gitattributes solutions and I think this can be done, I just haven't found the correct way to do.