git config

The command that reads and writes Git settings, which live in plain text config files.

In more detail

Settings are written as section.key, for example user.name or core.editor. git config user.name prints the current value, and git config --global user.name 'Ada Lovelace' sets it. Git reads three files in turn and the last one that sets a key wins, so a repository can override your personal defaults.

Examples

git config --global --list
git config --get-regexp '^alias'

Related terms

Taught in

References