I have a bare git repository sitting on a server and a user with git-shell for ssh communication.
The problem is that I can't force the user name and user email when I push my commits on the server with that user.
I set up in the user's home ~/.gitshrc:
export GIT_AUTHOR_NAME="John Doe"
export GIT_COMMITTER_NAME="John Doe"
and also ~/.gitconfig
file
[user]
name = John Doe
email = johndoe@example.com
But all I got in the git log are the user name and user email set up client side.
How to rewrite user name and user email in git-shell?