github - How to prevent users from modifying email addresses and usernames when building a self-built git server?
阿神
阿神 2017-05-02 09:51:09
0
2
791

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?

阿神
阿神

闭关修行中......

reply all(2)
小葫芦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template