I’m wondering where does git stores user information. I created a repository, which both me and my friend works on. When we both commit, we can see both of us as individual authors for different revisions. while theres a .gitconfig file created using git config --global in his home folder, I couldn’t find one in mine. So where’s my user information stored? Does git config --global only affect the individual login user?
I’m wondering where does git stores user information. I created a repository, which both
Share
If you do not store user information in your configuration files Git looks in the environment for committer information, using the variables
GIT_COMMITTER_NAME,GIT_COMMITTER_EMAIL,GIT_AUTHOR_NAME, andGIT_AUTHOR_EMAIL. In absence of these variables, your username and host name are used to construct a value. So even without any user information stored in configuration files two users will have different committer information.