How does one change the git config core.autocrlf from true to input?

Viewed 276

I have tried using the command git config core.autocrlf input and it returns a fatal: not in a git directory error message. I have also used the command git config --global core.autocrlf input which does change it in the global directory, however this does not help me because still in my projects, it takes from the git config --list and not the git config --global --list.

1 Answers

The error message is giving you a big hint: you need to run that command in each individual git working copy. Local configuration takes precedence over global configuration, and "local" means "stored in the git database of a working copy".

Related