Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why github does not recognize my username in my commits?

Tags:

I have two repositories on github, and my usernames on github and my local git name match. But for some reason github does not attribut my commits to me - so in statistics, there are no commits by the owner, only by some user with the same name. What could cause such behaviour?

like image 423
Rogach Avatar asked Feb 23 '12 19:02

Rogach


People also ask

Why are my commits linked to the wrong user?

GitHub uses the email address in the commit header to link the commit to a GitHub user. If your commits are being linked to another user, or not linked to a user at all, you may need to change your local Git configuration settings, add an email address to your account email settings, or do both.

Why are my 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.

Why are my commits not showing up on GitHub?

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.


1 Answers

Have you checked what e-mail address is associated with the commit message? I believe Github only attributes commits to you if the e-mail address associated with the commit is also connected to your Github account...

See Github's cheat sheet for information about how to add e-mails to your git config:

git config --global user.email "[email protected]"  

If you type:

git config --list 

you'll see all your current git configuration settings.

like image 159
smessing Avatar answered Feb 08 '23 23:02

smessing