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
There are 3 default paths for the config file.
/.git/config ~/.gitconfig$(prefix)/etc/gitconfigThe --global option always use the home directory. Note that git will always try to read all of them. If it finds one, it loads it, and moves to the next one. Local takes precedence over global, which takes precedence over system-wide. It uses a simple key-merging algorithm.
Reference: git-config FILES