Missing contributions after transferring commit email between GitHub accounts #214030
Replies: 7 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Basically, the commit history and the green contribution graph run on two completely separate systems: • Commit history links to your profile on page load as soon as the email is verified, which is why your name and I'd try:
|
|
GitHub documents this exact case: when an email address is added or moved to another account, historical contributions should be attributed to the account that now has that address, and the contribution graph can take up to 24 hours to refresh. The rebuild is automatic; GitHub's troubleshooting guide does not call for an empty commit. I'd count the 24 hours from when you verified the address on the new account. Also check the year of the missing commits on your profile: the graph places commits by their author date, which can differ from the date shown in repository history. If the expected year is still empty after 24 hours, open one affected commit's |
|
Short answer: yes, it's automatic, and it's the contribution graph's cache — not something you can force. But there's one thing worth checking that trips most people up. Why the commit history updated instantly but the graph didn't These are two separate pipelines:
GitHub documents that after adding or moving an email address, historical contributions are attributed to the account that now owns the address, and that the graph can take up to 24 hours to refresh: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile Things to verify while you wait (these are the real causes when it doesn't resolve):
What you can do
One caveat on your example commit: if it's on |
|
Thanks everyone for the suggestions! I did some further testing using the GitHub REST and GraphQL APIs through GitHub CLI and found something interesting. The REST API returns 33 commits attributed to my current account on the default branch ( However, when querying Both emails are verified, private contributions are enabled, the repository is not a fork, and I have write permissions. I also added the So it seems that GitHub has correctly updated the commit attribution after the email transfer, but hasn't recalculated the historical contributions. Since this is a company repository and we use Git Flow, I'd rather not push an empty commit directly to Has anyone experienced something similar? I'm particularly curious whether a new push to the default branch could trigger a recalculation of older contributions. I'll post an update once I've tested this. Thanks again! |
|
This is a great diagnostic — and it changes the recommendation. The REST vs GraphQL split is the key fact: REST says 33 commits attributed, GraphQL contributionsCollection says 2 (only the corporate-email ones). That means GitHub updated commit-page attribution for the transferred Gmail address but did not re-index it into the contribution graph. So it's exactly the two-pipeline issue I described, but now confirmed with numbers. On your question — will a new push to the default branch trigger a recalculation of older commits? Based on how the contribution index works: usually no. A new commit adds that one commit to the graph; it does not re-walk and re-attribute all historical commits. The re-attribution job runs on its own schedule (and can take up to 24h after adding an email), and when it runs, it should pick up all commits with that email at once — regardless of whether you push a new commit. So pushing at your next release is fine, but don't expect it to fix the 31 old commits. What's more likely to fix it: the background job eventually running, or — if it never does — Support actually checking the contribution index for your account. One more angle worth testing before your release: add the Gmail address to a brand-new empty repo, make one commit with it, and see whether that commit counts in GraphQL. If it does, the index is fine for the email generally and the problem is scoped to the large/old repo; if it doesn't, the email itself is being skipped by the contribution index and that's a much stronger Support ticket. Please do post the update after your release — it'll be useful data for everyone here. |
|
Thanks for the screenshots. Your commit is clearly attributed to your new account, so the email part is working. Two things to check before this needs GitHub: Check the exact commit date. Hover over "committed last week" on the commit page to see the timestamp. The contribution graph uses the commit's author date, which can differ from the committer date if the commit was rebased, amended, or cherry-picked. Look for a green square on the author date, not just last week's days. If the commit is on the default branch, in a repo you own, and the author date matches a day with no square after more than a day or two, then I don't know of a way to force a recount from your side. At that point it needs GitHub to re-index your contributions. I'd open a new support ticket quoting commit de8c528, saying the commit shows your new account but isn't counted on the graph, and including the email you moved. I can't promise they'll act on it. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Profile
Body
Hi everyone,
I recently moved an email address from one GitHub account to another. I removed it from my old account, added it to my new one and verified it successfully.
The problem is that my previous commits are now correctly linked to my new account when viewing the repository's commit history, but they don't show up on my contribution graph.
I've checked that the commit email matches the verified email on my new account and that the commits are on the default branch (master). I haven't modified or rewritten the commit history.
Does anyone know if GitHub automatically recalculates past contributions when an email address is moved between accounts? Is it just a matter of waiting, or is there something else I need to do?
I contacted GitHub Support, but they closed my ticket because I'm on the Free plan.
Has anyone experienced something similar?
An example of a historical commit correctly attributed to my new GitHub account after transferring the email address.
My contribution graph, where the corresponding historical contributions are still missing.
Thanks in advance!
All reactions