Git convey author information. Who is this Christian?

I recently started using git. I tried to follow the instructions for setting up my user info, but something seems to be terribly 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 and email address seem to be set correctly

[test@h] git add somefile

I added the file and now I want to fix 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 did I forget? I have no idea where this name and email address comes from. Is this the default value that I forgot to override somewhere?

EDIT: Remote Personal Information

+3
source share
3 answers

Ok, so I found a solution thanks to pst. I worked on a development server that hosts the .zshrc file on the system.

-, .zshrc : http://www.strcat.de/dotfiles/dot.zshexports

:

if [[ -x `which git` ]]; then
   (( ${+GIT_AUTHOR_EMAIL} )) || export GIT_AUTHOR_EMAIL = "..."
       ...
+3

:

git config --system -l
git config --global -l
git config --local -l

Linux:

echo $GIT_AUTHOR_NAME

Windows:

echo %GIT_AUTHOR_NAME%
+2

Open the configuration file in your-repo/.git/configand check if [user] is there.

The configuration file in the repository will override the global .gitconfig file.

0
source

All Articles