Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not showing as a contributor on GitHub

I'm struggling to get GitHub to show my contributions to a project. It is not my repository, but other repositories I've contributed to do show up on my profile.

I've tested contributions to both shared and private repositories work. I've pushed from other projects and everything is working as expected. The patches from the non-working project and a working one, both show the same details. Any pushes to working projects show me as a contributor on both the repository and my personal profile.

git config --global user.email and git config --global user.name are both correct. The repository I am committing to shows me as the author, but not on my profile.

I'm a bit lost on what to do. Does anyone have any ideas?

like image 240
SirCipher Avatar asked Nov 17 '16 00:11

SirCipher


People also ask

Can you hide contributors on GitHub?

In the top right corner of GitHub.com, click your profile photo, then click Your profile. Publicize or hide your private contributions on your profile: To publicize your private contributions, above your contributions graph, use the Contribution settings drop-down menu, and select Private contributions.

How do I change my contributor on GitHub?

Clone a local copy, delete the Github repository. Delete the . git folder in your local repository. Then initialize a new repository locally git init , then create a new Github repository and push your new local repository up to it.

Why is GitHub not showing me as a contributor?

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 I show contributors on GitHub?

On GitHub.com, navigate to the main page of the repository. Under your repository name, click Insights. In the left sidebar, click Contributors. Optionally, to view contributors during a specific time period, click, then drag until the time period is selected.


2 Answers

Sometime if you do fork, commit or merge in your branch, it still doesn't show your name in contributors. It may be due to email which you set on command line is not mentioned in your git profile. Following steps work for me.

  1. go to https://github.com/settings/emails
  2. Add your email to 'add Email address' option which is used on command line

Now check the contributors tab on project. It will start showing your contributions.

like image 189
Vinayak Sakhare Avatar answered Oct 02 '22 11:10

Vinayak Sakhare


Github shows only the top 100 contributors for a project.

If there are more than 100, the other contributors beyond these top 100 are never shown.

Even if you set a date range and there are less than 100 contributors displayed for the selected period, the list still only contains contributors who are among the all-time top 100.

like image 24
dpi Avatar answered Oct 02 '22 10:10

dpi