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

One Reply to “Git – Show Config – List Global & Local Settings”

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.