Git
Higher-priority files override the same setting in lower-priority files.
Local level
Highest priorityApplies only to one Git repository.
Config file location
<repository>/.git/configCommands
git config --local --editGlobal level
Second priorityApplies to your user account.
Config file location
~/.gitconfigGit also reads this user-specific file when present.$XDG_CONFIG_HOME/git/configCommands
git config --global --editSystem level
Third priorityApplies to every user on this Git installation.
Config file location
$(prefix)/etc/gitconfigCommands
git config --system --edit
Inspect configuration
git config --list --show-origin --show-scopeOfficial Git documentation