Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do my GitHub commits always show as unknown author?

I've just set up a GitHub account and pushed an initial repository. If I look at the account level, under "Public Activity" it's correct and says chriskessel pushed .....

If I click on the repository though, it says: unknown authored 4 minutes ago

I can't figure out how to configure IntelliJ (or whatever underlying Git file) to get my name in the actual commit line. git config user.name at the command line in the project knows who I am correctly.

I'm using IntelliJ 11, Git 1.7.9, and Windows 7.

I'm rather puzzled, especially since the GitHub account knows who did things, but not the GitHub repository and all my commits and even the repository creation were through IntelliJ. Any ideas what to look at?

like image 716
Chris Kessel Avatar asked Mar 03 '12 21:03

Chris Kessel


People also ask

How do I fix author identity unknown in Git?

When linking a commit to a Story, you may see "Unknown Author" in the Commit section. This indicates that the email address you used in your GitHub, GitLab, or Bitbucket account doesn't match the email address you used for your Shortcut account. To correct this: Go to Settings > Your Account > Email Addresses.

Why are my Git commits not showing?

Your local Git commit email isn't connected to your account Commits must be made with an email address that is connected to your account on GitHub.com, or the GitHub-provided noreply email address provided to you in your email settings, in order to appear on your contributions graph.

How do you change Git commit author for all commits?

Rewrite author info on all commits after <commit> using user.name and user. email from ~/. gitconfig : run git rebase -i <commit> --exec 'git commit --amend --reset-author --no-edit' , save, quit. No need to edit!

Why are some commits not verified?

Unverified means your signature is wrong. This can be if you commit with the wrong E-Mail/Password, if you haven't uploaded the Signature on GitHub(on that account) or if you've uploaded it wrongly.


1 Answers

Double check your user.email setting.
Both user.name and user.email must be set for GitHub to pick up the right Author.

As an example, see the "Git author Unknown" question.
See also the blog post "GitHub: Committing code to your public repository without "Unknown" author name in commits".

From the GitHub man page:

Git tracks who makes each commit by checking the user’s name and email.
In addition, we use this info to associate your commits with your GitHub account.
To set these, enter the code below, replacing the name and email with your own. The name should be your actual name, not your GitHub username.

$ git config --global user.name "Firstname Lastname"
$ git config --global user.email "[email protected]"
like image 199
VonC Avatar answered Nov 15 '22 16:11

VonC