I just installed the git server according to the following document:
http://www.liaoxuefeng.com/wi...
It is used by a small team. There are no requirements for permissions. I just found that users can change their username and email address randomly, although they cannot. Someone really messes around, but as a programmer, if you find that you can mess around, you will instinctively regard it as a bug, which is unacceptable.
How can we restrict it? It is best for the network administrator to assign user names and email addresses to everyone?
If you want centralized management, it is recommended to use SVN.
The spirit of Git itself is collaboration, freedom and equality, not a centralized code base.
You may feel that changing your name at will is a problem today, but tomorrow you will feel that more designs of Git are not in line with your wishes.
I also think the meaning is very limited. Human problems do not necessarily need to be solved by machines
Technically it can be done, such as adding some hook scripts to the server (
.git/hooks
).You can even use stronger regulations, such as requiring that all commits must be gpg signed, and the key and email address must be consistent.