If you see .gitconfig file it contains user's name and email address. I wish to protect it from user as they can always mask their identity as it still configurable by user.
Ex, In my company directory my name as follows Gerald, Anthony (Last Name, Fist name).
What people make mistake here, some user specify their name as below
- Gerald
- G.Anthony
- GA
- Anthony
- AGeral
- etc.
This makes confusion as it doesn't contain true information.
Let me know how you peopls manage user identity
You cannot really enforce that with Git alone (unless you are rethinking the all Distributed model), but if you have some encapsulation around your Git repo server, like gitolite, you can use some scripts to check the username:
For instance:
update.email-check.The "Philosophical Notes" included in that scripts are quite blunt but alos to the point ;)
Philosophical notes: