This might be a silly question or there might be a gap in my understanding of git. I understand that git is a distributed VCS. In git, in my local development environment, i can change the user and the email in the .gitconfig or using the 'git config' command, and then once i view the 'git log' the modified username and email will show up. The same will show up for all the users who clone the repository, once i push the changes.
So, Is there a way to allow/restrict specific users from performing a commit on the git repository or is there a way to prevent developers from changing their git username and email?
Update: To complete my question/requirement, I have setup gitblit on a VM in a my office network and migrated the data from svn to git, along with the users. Just like in SVN, only those users in git must be allowed to commit/clone/push etc.