I recently started using git. I tried to follow the instructions of setting my user information, but soemthing seems to go horribly wrong:
[test@h] git config --list
user.name=**MY NAME**
user.email=**MY EMAIL**
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=** URL **
branch.master.remote=origin
ranch.master.merge=refs/heads/master
So far, so good. My name & email address seem to be set correctly
[test@h] git add somefile
I’ve added a file and now want to commit it:
[test@h] git commit -m "test commit"
[master 280efe4] test commit
Author: Christian S. <strcat@****.com>
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 somefile
Suddenly out of nowhere… Christian S.
What have I overlooked? I have no Idea where this name and email address comes from. Is this some default value I forgot to override somewhere?
EDIT: Removed personal information
Ok so I found the solution thanks to pst. I was working on a development server where a system wide .zshrc file is in place.
Apparently the source for the .zshrc file was: http://www.strcat.de/dotfiles/dot.zshexports
And within this file, the Author’s name and Email address were hardcoded: