Showing private contributions on your GitHub profile
André Sionek
Principal Software Engineer @ Catena Clearing | Author of Real-Life Infrastructure as Code with AWS CDK
Yesterday, I saw a post from Ryan Peterman suggesting that the only way to display contributions on your GitHub profile is if you work on side projects in public repositories.
After reading the comments, I realized that most people don't know that it is possible to display private contributions on your public GitHub profile. Even better, it is possible to merge contributions made with different emails; if your company doesn't allow using your personal GitHub account, for example.
I'm not going into the discussion about the original post, although I agree with Ryan and people commenting that GitHub contributions is a vanity metric and doesn't tell anything about someone being senior. But you can certainly have a chart full of green squares, even if you didn't work on side projects.
How to display private commits on your chart?
This is a screenshot of my public profile. Notice how it displays contributions to private repositories, and even though I was already removed from that organization, my contributions still show up in the chart.
To activate it is quite simple. Go to you profile page, click on Contribution Settings and then activate the Private contributions. Check the official GitHub docs here.
Merge multiple GitHub accounts
But there is another problem. Many companies don't allow using your personal GitHub account at work, and they require you to create a new profile with your company email. The result is that your contributions end up scattered across many profiles. However, there is a solution for that, although it's not perfect. Let's look at my profile.
I was able to import MOST contributions from asionek to andresionek91 between Mar/22 and Aug/22. If I hadn't been able to merge both profiles contributions, I would have an empty gap on my personal profile from Mar/22 to Aug/22. Here is how you do it:
领英推荐
Rules for counting contributions
There are a few rules that are considered when counting contributions. You can find the rules on the GitHub documentation. They are:
Commits will appear on your contributions graph if they meet ALL the following conditions:
In addition, AT LEAST ONE of the following must be true:
You might see that I mentioned that MOST of my contributions were moved over. This is because issues, PRs and discussions are not attributed when you merge the accounts.
If you merged multiple personal accounts, issues, pull requests, and discussions will not be attributed to the new account and will not appear on your contribution graph.
You can also read more about merging multiple personal accounts here.
GitHub Enterprise / Self-Hosted
If your company has a self-hosted instance of GitHub, they will need to enable GitHub Connect to allow sending contribution count to public profiles. Send this documentation page here to your SysAdmin, and ask them to allow this feature. If they deny, unfortunately there isn't anything else you can do to link the contributions to your personal profile.
What if I already left the company?
Unfortunately, you need to verify your email address to be able to merge your contributions in a single profile. The chances are that if you already left a company, you also don't have access to the email address to verify it.
Put that in the bucket of experience and merge your currently active GitHub accounts.
Frontend Developer | Meta & Google Certified | Skilled in React JS & Git/GitHub | Currently Learning Backend | Advancing in Full Stack | AI/Blockchain Enthusiast
6 个月my github look like this, ??
Software Engineer || PhP - Laravel - MySQL - API - VueJS || LeetCode Problem Solver | Instructor at Youtube Channel |
6 个月Very much helpful resource .
Software Engineer (Frontend)
6 个月I am reproduce the step you explained.. why im getting the email was already in use?
Developer @AffordMed
8 个月Under "Merge multiple GitHub accounts" How can I add my work email to my account if there is already an account associated with that work email? Do I need to close my work account to do this?
Software Engineer @ Hardin Design and Development | React, Flask. Omnia Vincit Veritas.
11 个月It always surprises me when people look into such superficial things. One thing, outside of work, will never tell you everything or anything for that matter. Here is a simple contraction, if an engineer is working extremely hard to learn and grow and spends most of their time on their actual work. They will not have enough time or energy to update their GitHub every day. On the other hand, if the engineer is slacking off and barely doing anything, they will have the time to push something every day. So, by following the logic of only hiring people with full GitHub engagement, you will filter out the exact people you want, and end up with the exact opposite of the people you don’t want.