My email is hacked, I cannot recover , how can I change my GitHub email to my new email? #139508
-
Select Topic AreaQuestion BodyHi , My gmail is hacked, and I cannot recover , how can I change my GitHub email to my new email? thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
|
Hey @im-Nitesh If your Gmail is hacked and you're unable to recover it, here's how you can change your GitHub email to a new one: 1. Log into GitHub using your existing credentials. 2. Add a new email: 3. Verify your new email: 4. Set your new email as primary: 5. Remove your old email: 6. Enable 2FA (Two-Factor Authentication): Let me know if you need further assistance. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
To change your GitHub email if you no longer have access to your Gmail account, follow these steps:
This will update your GitHub account with your new email address. ✔️ |
Beta Was this translation helpful? Give feedback.
-
|
I don't have access to my original and old Gmail because I forgot my password and the verification steps. Please help me activate my old Gmail. |
Beta Was this translation helpful? Give feedback.
-
|
I don't have access to my original and old Gmail because I forgot my password and the verification steps. Please help me activate my old Gmail. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
-
|
I went through this nightmare last year when my old university email got deactivated. The standard "add a new email" flow everyone keeps posting does not work if you can't get the verification code sent to your hacked/dead email. I see a few people in the thread already hitting that wall. The hard truth: GitHub's automated system is designed to protect accounts from hijacking. If you can't prove ownership of the old email, the self-service flow dead-ends. You need a human. Here's the actual path that worked for me and two of my coworkers:
What to expect: Support will take 3-7 days. They will likely ask you to verify via a secondary method (like answering security questions about your repos or providing a screenshot of your logged-in session). It's slow, but they will eventually help you add a new email without needing the old one. One warning: If you cannot log in at all (lost password AND hacked email), you're in a much harder spot. In that case, support will ask for things like old commit hashes, SSH key fingerprints, or a notarized identity verification. It's possible but painful. Hang in there. This is fixable, but you have to go through the official support ticket system, not the community workarounds. |
Beta Was this translation helpful? Give feedback.
Hey @im-Nitesh
If your Gmail is hacked and you're unable to recover it, here's how you can change your GitHub email to a new one:
1. Log into GitHub using your existing credentials.
2. Add a new email:
->Go to Settings > Emails.
->Under Add email address, enter your new email and click Add.
3. Verify your new email:
GitHub will send a verification link to your new email. Click on the link to verify it.
4. Set your new email as primary:
->After verifying the new email, go back to Settings > Emails.
->Next to your new email, click Make primary.
5. Remove your old email:
Once your new email is set as primary, you can remove the old (hacked) email from your account.
6. Enable 2FA (Two-Factor …