I have a Git repository (originally CVS, then SVN, now Git) containing a Rails project that has been deployed on Linux for a while now. Everything seems to run fine.
Now that I've converted to git, I see that many of my files in the repository contain CRLF
line endings. I'd love for it to all be consistent (LF
), but not at the expense of loosing the edit history of every file that has CRLF
line endings.
Can you think of any reason I can't leave the files as they are? I seem to remember there being a problem with shell scripts or cron files or something that didn't respond to CRLF
very well.
Also, I know all about the Git options core.autocrlf
and core.safecrlf
, But is there some way to have it convert all text files from CRLF
to LF
on checkout (for the linux side) ... i.e. a core.autolf option or something similar?