core.autocrlf is a configuration setting for Git controlling automatic conversion of line endings.
core.autocrlf
is a configuration setting for git. It controls whether or not automatic conversion of line-endings should happen in the working directory.
In the manual for git-config
, the option is described like this:
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 containCRLF
in the repository will not be touched. Use this setting if you want to haveCRLF
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.