How can I print out the value of a git configuration setting (core.autocrlf) on Windows?
If you're using Git Bash:
git config --get core.autocrlf
And for the global config:
git config --global --get core.autocrlf
Where ever your git repo is ie:public_html do:
[~/public_html]$ git config -l
this should list your whole config for that repo. You could also always use:
[~/public_html]$ git config -help
this will show you all the list commands
If you want to check your settings, you can use the git config --list
command to list all the settings Git can find at that point:
$ git config --list
user.name=John Doe
[email protected]
color.status=auto
color.branch=auto
color.interactive=auto
color.diff=auto
...
You may see keys more than once, because Git reads the same key from different files (/etc/gitconfig
and ~/.gitconfig
, for example). In this case, Git uses the last value for each unique key it sees.
You can also check what Git thinks a specific key’s value is by typing git config <key>
:
$ git config user.name
John Doe
Here the used documentation
In the .git dir there is a file named 'config' which has your settings in. This help?