Any way to guarantee that a git user doesn't use fake account info when commiting and pushing?
问题 Since git users can config their user.name and user.email freely and do commits, it's possible for John to fake a commit with Bob's name and email, which is not what we want. Is there any way to prevent this? I know in svn we need username and password to commit; is there any equivalent mechanism in Git? 回答1: Some convoluted solutions are possible, I guess: Require an SSH account to access a repository; create one repository per authorized user. Create hooks in every repository that rewrite