I have 2 emails associated with my Github account, one primary email, and one secondary. When I remove my secondary email from account, almost half of my commits are gone.
How can I persist my commits when removing my secondary email address?
I have 2 emails associated with my Github account, one primary email, and one secondary. When I remove my secondary email from account, almost half of my commits are gone.
How can I persist my commits when removing my secondary email address?
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.
© 2022 - 2025 — McMap. All rights reserved.
git log
locally and look at the commit ids that used your removed email address. Now go check the commit history on GitHub to confirm those commit ids still exist. – Tenderloin