Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git author Unknown

Tags:

git

github

my author name in all my commits is coming up as unknown https://github.com/freeenergy/Teacher-Login-Validation-Module

did this

$ git config --global user.name "Firstname Lastname"Sets the name of the user for all git instances on the system $ git config --global user.email "[email protected]" 

but still the author/committer name shows [unknown]

not knowing what I was doing I experimented with setting $ GIT_AUTHOR_NAME="my name" and it changed my name to my username [freeenergy] (I.E. my issue was fixed.) But when I switched back to my other computer the issue was the same.

my config file now looks like this but is still committing as [unknown]

[core]     repositoryformatversion = 0     filemode = false     bare = false     logallrefupdates = true     symlinks = false     ignorecase = true     hideDotFiles = dotGitOnly [remote "origin"]     url = [email protected]:freeenergy/my-project.git     fetch = +refs/heads/*:refs/remotes/origin/* [user]     name = my name     email = myEmail.com 
like image 254
Alex Borsody Avatar asked Nov 27 '11 05:11

Alex Borsody


People also ask

What does identity unknown mean?

Anonymity describes situations where the acting person's identity is unknown. Some writers have argued that namelessness, though technically correct, does not capture what is more centrally at stake in contexts of anonymity. The important idea here is that a person be non-identifiable, unreachable, or untrackable.

What is git author name?

Git store the name and the email of two persons for each commit: the committer and the author. The difference between the two is that the author is the person who wrote the changes, while the committer is the person who uploaded them the repository.


1 Answers

Even better than running git config, you can edit your ~/.gitconfig file directly. Look and see if there's a section for [user] with the relevant information. For example, my ~/.gitconfig has this...

[user]     name = Bob Gilmore     email = [email protected] 

(There's no space in front of the [user], and single tabs in front of the name and email labels)

If it doesn't have those set properly, just go ahead and edit the .gitconfig file by hand.

like image 188
Bob Gilmore Avatar answered Sep 24 '22 00:09

Bob Gilmore