Let's say we have team of 10 developers. Half of them use Windows and half Linux. All of them work together on a project, sharing work using GIT. Problem with CRLF/LF begins ...
Exmaple: One developer with Window works on the same thing together with developer which is using Linux. Both of them need to view/edit the same files.
Will there be problem with CRLF and LF ? What are the ways GIT would handle this problem ? (force Linux isn't solution)
You can see more with the recent article "Git for Windows: Line Endings" from Edward Thomson (Ex-GitHubber, now Microsoft, now... errr GitHubber again)
I would add that
core.autocrlf
applies to all files including binaries ones, whereas.gitattribure
core.eol
directive can be set for specific files (like*.cpp
for instance)I have always recommended that
.gitattributes
approach.