--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.nameRelated terms
- git config — The command that reads and writes Git settings, which live in plain text config files.
- config scope — Which of Git's config files a setting lives in: system for every user, global for you, or local for one repository.
Taught in
- Installing Git, And Telling It Who You Are — Advanced Git Internals & Distributed Workflows
- What A Remote Actually Is — Advanced Git Internals & Distributed Workflows