On Monday, October 8, 2012 8:09:11 PM UTC+2, Dun Peal wrote:
> Can anyone explain why core.autoccrlf=true makes Git replace LF with CRLF
> on Linux?
This is intended behavior, and is mostly used on Windows machines to make
sure that local files use CRLF for line endings (so they work in notepad,
etc), while files "inside" the repository are kept with "proper" LF endings.
>From the docs (git config --help):
> Setting this variable to "true" is almost the same as setting
> the text attribute to "auto" on all files except that text files are not
> guaranteed to be normalized: files that contain CRLF in the repository will
> not be touched. Use this setting if you want to have CRLF line endings in
> your working directory even though the repository does not have
> normalized line endings. This variable can be set to input, in which case
> no output conversion is performed.
as advised, on linux you should configure it to "input".
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To view this discussion on the web visit
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at