i am new to git and i am doing a test repository to see how it goes.
First when i did git add
i had a warning telling me that my file will be turned to clrf or something like that.
So i tried to change it just to see what it does.
I did something like git config core.autocrlf = false
What i did not expected is that the "=" would be passed as a value to this boolean.
It make's very little sens to me.
So i don't need = to assign a value to a variable fine. I did it again this time git config core.autocrlf false
Then i did git add
and get the following message :fatal: bad boolean config value "=" for 'core.autoclrf
Then i did the git config --get-all core.autocrlf
command to understand. And i'v seen that the value is not override when i set a new value, insted it's add a line with an other value.
I'v checked in my "/Git/etc/gitconfig" file to see what value was set to the autocrlf variable to see if i could change it directly from here but the value was "true".
So i don't understand where the values are stored.
Also i tried
git config --unset-all core.autocrlf
git config --replace-all core.autocrlf
git config --system --unset core.autocrlf
None of that worked. For the last one it was funny, i had a permission denied then did chmod u+x gitconfig
but get a changing permission of gitconfig: permission denied.
So if you know how am i suppose to change the value of this boolean "core.autocrlf" so i can add my repository let me know.##
git config --get-all --show-origin core.autocrlf
, it will show you where the config values are found. My guess is that the two instances are not in the same config file. – Concisiongit config --global core.autocrlf false
will change your global Git config, while the default is to change only the sandbox you're in. – Concisiongit config --edit
orgit config --global --edit
will fire up your configured editor (which you should first set withgit config
of course) on the local or global configuration file. – Petuntsegit config --get-all --show-origin core.autocrlf
and then with somecd
and astart .gitconfig
was able to open the file where the wrong value for autoclrf where stored. Also theglobal
command is the thing i was missing here thanks a lot. Thanks Torek this will be very helpfull for editing my settings ! – Sibyl