Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing email from GitHub also removed commits

Tags:

github

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?

like image 981
user15690889 Avatar asked Aug 15 '26 00:08

user15690889


1 Answers

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.

like image 110
Swapnil Srivastava Avatar answered Aug 19 '26 15:08

Swapnil Srivastava



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!