2016-07-12 1 views
1

Ich bin auf Git Version 2.8.3.windows.1 und ein wenig perplex darüber, wo die core.autocrlf Einstellung tatsächlich gespeichert wird. In Git Extensions zeigt es als „nicht gesetzt“, jedoch bekomme ich die folgende wenn ich git config-Abfrage:Gibt es einen anderen Ort für eine git config-Einstellung als global, system und local?

$ cd /c    <-- i.e. not a repo 

$ git config --get core.autocrlf 
false 

$ git config --global --get core.autocrlf 
(nothing) 
$ git config --system --get core.autocrlf 
(nothing) 

$ git config -l 
core.symlinks=false 
core.autocrlf=false 
core.fscache=true 
... 

$ git config --system -l 
credential.helper=manager 

$ git config --global -l 
core.editor="C:/Program Files (x86)/GitExtensions/GitExtensions.exe" fileeditor 
core.quotepath=false 
color.ui=auto 
... (not here either) 

$ git config --local -l 
fatal: unable to read config file '.git/config': No such file or directory 

Die .gitconfig Datei nicht auch haben

$ cat ~/.gitconfig 
[core] 
     editor = \"C:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor 
     quotepath = false 

So bekomme ich, wie GitExt zeigt es als "nicht gesetzt" an, aber ich verstehe überhaupt nicht, wie git config -l den Wert für core.autocrlf erhält. Und ich kann nicht scheinen, es loszuwerden, um es neu zu schreiben:

$ git config --unset core.autocrlf 
fatal: not in a git directory 

$ git config --unset --global core.autocrlf 

$ git config -l 
core.symlinks=false 
core.autocrlf=false 
core.fscache=true 
... 

Danke.

+0

Mögliches Duplikat von [Windows-spezifischen Git-Konfigurationseinstellungen; wo sind sie eingestellt?] (http://stackoverflow.com/questions/32847697/windows-specific-git-configuration-settings-where-are-they-set) – ardila

+1

Versuchen Sie 'git config --show-origin -l' – ardila

Antwort

Verwandte Themen