- ~/.gitconfig file stores git global config
- .git/config file local configuration will be in your repository's
git config --list
git config --list --global
git config --list --local
git config --list --system
# To see setting is defined (global, user, repo, etc...) and where it is
git config --list --show-origin
notice: You can look at the effective config in a repository and I can differ local, global and system config with the appropriate parameter (--global, --local, --system)
# Global level
git config --global user.name "John Doe"
git config --global user.email [email protected]
# Repository level
git config --local user.name "John Doe"
git config --local user.email [email protected]