Git stores configuration data in three different scopes: local, global and system.
git config command we can list all Git config settings as well as only local, global or system settings.
For each scope, Git stores settings in different config files and it may be useful to know how to locate those files.
In this note i am showing how to list Git config settings and how to find Git config files location.
Cool Tip: Save username & password in Git credentials store! Read more →
Git Config List
List all Git configuration settings:
$ git config --list
Show the location of Git config files where these settings are defined:
git config --list --show-origin
Separately list global, local and system configuration settings:
$ git config --list --local $ git config --list --global $ git config --list --system
3 Replies to “Git – Show Config – List Global & Local Settings”
Neat site! It looks like the RSS feed isn’t working though!
Thank you for the well-written article – short and to the point. Has everything and more than I was expecting.
Additional hint: you can shorten the options as long as they are unambiguous
git config –li –gl –sh
is equivalent to
git config -list –global –show-origin