Git – Show Config – List Global & Local Settings

Git stores configuration data in three different scopes: local, global and system.

Using the 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
Was it useful? Share this post with the world!

3 Replies to “Git – Show Config – List Global & Local Settings”

  1. Neat site! It looks like the RSS feed isn’t working though!

  2. Andrew Strain says: Reply

    Thank you for the well-written article – short and to the point. Has everything and more than I was expecting.

  3. 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

Leave a Reply