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?
Share
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:
If you type:
you’ll see all your current git configuration settings.