On Jun 30, 2008, at 1:48 PM, Clifford Caoile wrote:
Also, I wonder if "created a repo with a CRLF file, core.autocrlf =
false" is contrived for regular Unix-based git usage. Do
multi-platform projects that use git actually prepare their repos with
CRLF measures such as gitattributes? What is the necessary
housekeeping for multi-platform projects when using git?
Git can do the housekeeping for you. You should set
- core.autocrlf=true on Windows
- and core.autocrlf=input on Unix.
This ensures that CRLF *never* enters the repository accidentally.
Unfortunately, Unix doesn't have core.autocrlf=input set by default,
thus repositories can be polluted when committing on Unix.
Steffen