Git: Removing carriage returns from source-controlled files
Posted
by Blixt
on Stack Overflow
See other posts from Stack Overflow
or by Blixt
Published on 2010-03-18T00:54:07Z
Indexed on
2010/03/18
1:01 UTC
Read the original article
Hit count: 903
git
|source-control
I've got a Git repository that has some files with DOS format (\r\n
line endings). I would like to just run the files through dos2unix
(which would change all files to UNIX format, with \n
line endings), but how badly would this affect history, and is it recommended at all?
I assume that the standard is to always use UNIX line endings for source-controlled files, and optionally switch to OS-specific line endings locally?
© Stack Overflow or respective owner