Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Select Topic Area

Question

Body

What happened:

  1. I previously made a lot of commits using an email associated with my secondary GitHub account.
  2. I removed that email from the secondary account.
  3. I then added and verified the same email on my personal GitHub account.
  4. I enabled “Include private contributions” in my personal account profile settings.
  5. I disabled “Keep my email address private”, meaning web-based commits should use my real (verified) email.
  6. On my secondary account’s commit history, I now see that those old commits visually show my personal GitHub username (Umerriaz111) — the author is displayed as my personal account in the graph / history.

What I expected:

  • All past commits made with that email should fully reflect in my personal account’s contribution graph.
  • The contributions graph on my personal GitHub profile should show the green squares for all those commits.

What I actually see:

  • The commits exist in the repositories, and the author names / commit history are correct.
  • On the secondary account, those old commits now show my personal GitHub username (Umerriaz111) as the author.
  • However, on my personal account, the contribution graph does not reflect these past commits (green squares are missing), even though GitHub is visually attributing the commits to me on the secondary account.

What I have confirmed / done:

  • Verified that the commit‑email exactly matches the email verified on my personal account (umerriaz2334@gmail.com)
  • Confirmed “Include private contributions” is ON in my personal profile settings
  • Confirmed that some of my commits were made through the GitHub Web UI (so Committer is GitHub <noreply@github.com>), but the Author email is correct

Questions / Help Needed:

  1. Why aren’t my past commits showing in my contribution graph even after moving that email to my personal account?
  2. Is GitHub not re‑attributing the commits properly after the email change?
  3. Do I need to take any additional steps (e.g., rewrite commit history) to force the commits to appear in my personal profile?
  4. Can GitHub Support help by reprocessing or rebuilding my contribution graph for that email?

Additional Info:

  • GitHub username (personal): Umerriaz111
  • Private repository: Yes
You must be logged in to vote

Replies: 5 comments · 2 replies

Comment options

hey there, afaik
github counts contributions only when the email is verified and the repo is accessible to the same account at that time. old commits don’t get retro-added. visual attribution on another account doesn’t change the contribution graph logic.
if the commits are in private repos you don’t own, they won’t count. if they were made before the email was verified on your current account, they won’t count. github won’t recalc history for you. the only method that works is rewriting the commits in a repo you control with the correct author email.

hope this helps. all the best.

You must be logged in to vote
0 replies
Comment options

GitHub only shows past commits in your contribution graph if the author email matches a verified email on your account and the commits are on the default branch or merged into it. Even if the commits now show your username, if the author email or branch doesn’t match, they won’t appear as green squares. Double check the author email on those commits and make sure they’re in the default branch history. If everything is correct, the graph may need up to 24 hours to refresh, or you can ask GitHub support to reprocess your contributions.

You must be logged in to vote
2 replies
@Umerriaz111
Comment options

@Aqib121201 @cnd-sw
Thanks for the explanation!

I’ve already double-checked everything you mentioned:
• The author email does match a verified email on my personal GitHub account.
• The commits are all on the default branch (main).
• Private contributions are enabled on my profile.
• “Keep my email address private” is turned off, so real email is being used.

What’s strange is this:
On my secondary GitHub account, those commits now visually show my personal GitHub username (because I moved the email to my personal account). So GitHub UI is clearly associating the commits with my personal account — but my personal contribution graph still does not show them.

It looks like GitHub is partially re-attributing the commits (the username display changes), but not updating the contribution graph.

I think i should wait for 24 hours bcz its only 10 hours ago that I change everything.

@Aqib121201

This comment was marked as off-topic.

Comment options

@Aqib121201
It’s been 3 days — I still haven’t received those commits. Any updates?

You must be logged in to vote
0 replies
Comment options

Here’s the situation as clearly as possible:

GitHub won’t retroactively add old commits to your contribution graph just because you moved the email from one account to another. The commits may display your current username because the email now belongs to your main account, but the contribution graph only shows activity under strict conditions:

The commit must be on a repository you currently have access to.
If the repo is private and belongs to the other account or an organization you’re not a member of, the contributions will not appear.

The commit must be on the default branch or a merged pull request.
Commits on non-default branches won’t appear unless merged.

The repo must not be a fork unless the commits are part of a merged PR upstream.

GitHub does not backfill contributions when an email is moved to a different account — the graph is not rebuilt historically.

So even though the author field shows your username now, GitHub does not recalculate past contribution activity.

What you can do:

Make sure you still have access to those private repositories with your personal account.
(If not, their commits will never show up.)

If the commits were on non-default branches, merge them into the default branch.

If you absolutely must show these commits in your graph, the only guaranteed method is to rewrite the commit history using your current email — but this will change hashes and may break things, so it’s usually not recommended.

Can GitHub Support rebuild your graph?
No — GitHub docs are clear that they don’t recalc old contributions based on email changes.

Let me know if you want me to rewrite it in a more polite or more technical tone — or if you need that GitHub badge generated.

You must be logged in to vote
0 replies
Comment options

@Senegalion

Here’s my situation, brother:

Those commits were made on the default branch, and I’m already a member of that repository, but it still looks like I haven’t received those contributions in my GitHub graph.

What should I do next?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Profile Showcase your work on GitHub with a personalized profile, bio, contributions and pinned repositories Question Ask and answer questions about GitHub features and usage
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.