--show-origin

Flags for git config that print which file, or which scope, a setting's value came from.

In more detail

When a setting has an unexpected value, git config --show-origin user.name names the exact file and git config --show-scope user.email names the scope (system, global or local). Use them instead of guessing which file to edit.

Example

git config --show-origin user.name

Related terms

Taught in

References