Lori Lori - 2 months ago 17
Git Question

Git Config core.autocrlf overwrite

I'm trying to set the

autocrlf
property to
false
. For some reason I currently having 3 such entries and I'm assuming one of them overwrites the others.
Running
git config -l
returns a list with 3
autocrlf
entries, one of them
true
, 2 of them
false

enter image description here

Running
git config --global -l
returns a list with one
autocrlf
entry set to
false

enter image description here

Running
git config --local-l
returns a list with one
autocrlf
entry set to
false

enter image description here

Running
git config --system -l
returns an error
enter image description here

Somewhere there is a file maybe that contains the true setting. How can I find this file? Could the error I'm getting for the system config have something to do with it?

Thanks in advance.

Answer

With git version 2.8 onwards, you can simply use:

git config --list --show-origin

You will see which config is set where.

Also, see "Where do the settings in my Git configuration come from?"

It is also possible that the third entry lives in c:\Users\All Users\git\config but the output of the above command should remove the guesswork.

Comments