Missing contributions after email change #189660
-
Select Topic AreaGeneral BodyHi GitHub Support, I recently changed the Primary email on my GitHub account to vitaliifedunyk.dev@gmail.com. I have several commits in private repositories that were made with my old email. The repositories and commits still exist, but the contributions are currently not reflected under my profile activity. Could you please help me re-associate these commits with my current Primary email? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hi @vitaliifedunyk, You don't actually need to "re-associate" the commits. GitHub links commits to your profile based on the email address used in the commit history. The Solution: Keep the old email as a Secondary Email in your Email Settings. As long as that email is verified on your account, all past contributions (even in private repos) will stay visible on your profile. If you've already removed it, just add it back and verify it. Your contribution graph will update automatically. Note: If you absolutely must remove the old email, you would have to use git filter-repo to rewrite the entire history of your repositories, which is complex and can disrupt collaborators. Keeping it as a secondary email is the standard practice. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @NimeshKolambage, Thank you for the explanation. Initially I removed my old email [vitalik.fedunyk@gmail.com](mailto:vitalik.fedunyk@gmail.com) from my GitHub account, but after reading the recommendations I added it back and verified it. The commits themselves still exist in the repositories and the commit history shows my old email as the author. However, my contribution graph is still missing many of the activities, and the green contribution squares are not showing for those days. These repositories are private course projects, and it is very important for me that my daily contributions appear correctly in the contribution graph, since this history is important for my developer portfolio. Could you please advise if there is anything else I should do so that the contributions are reflected correctly on my profile? Thank you very much for your help. |
Beta Was this translation helpful? Give feedback.
"I understand! If the email is already verified and the contributions still aren't showing, there are a few common reasons for this:
Private Repo Settings: Go to your Profile Settings and make sure the box "Include private contributions on my profile" is checked. If this is off, contributions to private repos won't show up.
Re-sync Time: Sometimes GitHub takes a bit of time (up to 24 hours) to re-index your contribution graph after re-adding an email.
Commit Email Check: Double-check a specific commit on GitHub. Click on the commit hash and see if your profile icon is linked to it. If it’s just a generic icon, it means the email in the commit doesn't exactly match the one you added (check…