.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
I am doing this for my email in the following way:
git config --global alias.hobbyprofile 'config user.email "me@example.com"'
Then when I clone a new work project, I have only to run git hobbyprofile and it will be configured to use that email.
git hobbyprofile