.gitconfig is usually stored in the user.home directory
I use a different identity to work on projects for CompanyA and something else for CompanyB (primarily the name / email). How can I have 2 different git configurations so that my check-ins don't go with the name / email.
.git/config file in a particular clone of a repository is local to that clone. Any settings placed there will only affect actions for that particular project.
git config modifies
~/.gitconfig - only with
--global does it modify the latter.)