.gitconfig is usually stored in the user.home directory.
.gitconfig
user.home
I use a different identity to work on projects for Company A and something else fo
To be explicit, you can also use --local to use current repository config file:
--local
git config --local user.name "John Doe"