Loosing all contributions by changing primary email address of github account

I have added a new email address to GitHub account and deleted my old primary email address from account. Now organizations don’t show me as a collaborator of repos. But commits are there. And all contributions are gone from my contribution time line of my profile as well. Is there anyway to recover this ?

:wave: Welcome!

Any commits that used your old primary email address will no longer be associated with your account if you no longer have that email address associated with your account.

To revert, you would have to add that email address back and verify it. It doesn’t have to be your primary email address.

To prevent this becoming a problem in the future, especially if you are using an email address that is attached to a school or workplace, you can choose to select our email privacy feature and use a GitHub provided address for all of your commits. This isn’t a functional email address, but a way of associating your commits directly with your GitHub account instead of with a specific email address.

1 Like

What if that removed primary email was old and unaccessible , due to that I’m not able to verify the email address.

Try adding it without verifying - it might still work.

2 Likes

yup, simply add without verifying it, I did that, it’s working

1 Like

@canuckjacq Thanks , @xdvrx1 yes it is, thanks

2 Likes

@canuckjacq, is this not a security hole? What if, for example, I know a certain programmer and the email account he is using, if I want to get his commits, I can do so by simply adding the email without verifying it, right? But, of course, I will not do that, I’m just exposing the security issue here.

Unless, GitHub marks emails that should be used once, for example, if my old email is added to my account and I cannot access that anymore but I added it without verifying it, then another user used that also after the authentic user added it, the second user will not be allowed because the email is already associated with the valid GitHub user, even though he did not verify it. Hopefully, this will be added if there is none.

I can’t see where it would be a security risk. If someone is super hung up on clocking up meaningless commits there are definitely simpler ways to go about that using your own email address.

You can’t add an email address to your account if it is already on another account - verified or not. Additionally, if someone adds your email address to their GitHub account, you can ask support to remove it.

1 Like

this is what I’m referring to, this is great so that it’s sure, this was not mentioned in the documentation, thanks for the reply,