About unlinking your email address
Since an email address can only be associated with a single GitHub account, when you've lost your 2FA credentials and are unable to recover access, unlinking your email address from the locked account allows you to link that email address to a new or existing account. Additionally, linking a previously used commit email address to a new account will connect your commit history to that account. Unless you have chosen to keep your email address private, your account's commit email address is the same as your account's primary email address. See 设置提交电子邮件地址.
注意
The GitHub-provided noreply
email address cannot be unlinked from an account. Commits authored with a noreply
address cannot be reconnected to a different account.
Be aware that nothing else associated with your 2FA locked account, including your repositories, permissions, and profile, will transfer to your new account.
Unlinking your email address
Unlinking email addresses is only available for accounts with 2FA enabled. If you do not have 2FA enabled, you can sign in and remove your email address from your account settings.
Educational benefits cannot be transferred after an email address is unlinked and associated with a different account. To keep these benefits, you must continue using the original account that was used to apply.
警告
Following these steps will not disable 2FA or provide access to a locked account, but will instead unlink the associated email address so it may be used for a different account. If you cannot regain access to the 2FA locked account, these steps will permanently break the link between the account and the linked email address. Before continuing, be sure you have lost all access to your account. See 丢失 2FA 凭据时恢复帐户.
Unlinking with your password
If you know your password, you can sign in with your password to unlink your email address.
-
Navigate to https://github.com/login.
-
To prompt two-factor authentication, type your username and password, then click Sign in.
注意
If you have linked a Google account to your GitHub account, you can sign-in with your social login instead of using your password.
-
Under "More options", click 2FA recovery code.
-
Under "More options", click Begin account or email recovery.
-
In the modal that appears, click I understand, get started.
-
You may be required to verify an email address. To send an email containing a one-time password to each email address associated with your account, click Send one-time password.
注意
The one-time password will be sent to your primary and backup email addresses. Unless you have previously chosen a specific backup email address, all verified emails are considered backup email addresses.
-
Type the one-time password from your email in the "One-time password" text field, then click Verify email address.
-
要开始解除关联,请单击“开始解除电子邮件关联”。****
-
在“解除电子邮件关联”屏幕上,单击“继续”****。 GitHub 会向该帐户上的每个电子邮件发送一个验证链接。
-
在你要取消链接的电子邮件帐户的收件箱中,打开主题为“[GitHub] 取消链接此电子邮件”的电子邮件。
- 或者,如果要取消链接多个电子邮件帐户,请在要取消链接的每个帐户的收件箱中打开主题为“[GitHub] 取消链接此电子邮件”的电子邮件,然后完成以下步骤。
-
在电子邮件中,单击“取消链接此电子邮件”。
-
要完成解除电子邮件关联,请单击“解除关联”****。
-
或者,如果要创建新帐户并链接新近取消链接的电子邮件,请单击“创建新帐户”。
注意
还可以将已取消链接的电子邮件链接到已存在的 GitHub 帐户。 请参阅“添加电子邮件地址到 GitHub 帐户”。
-
或者,如果你在锁定的帐户上设置了任何形式的付款,请通过 GitHub 支持门户 联系我们,以取消将来的付款。 例如,你可能有付费订阅或通过 GitHub Sponsors 赞助开发人员。 如果你是通过 GitHub Sponsors 赞助的,请提及这一点,以便团队可以帮助你迁移赞助。
Unlinking without your password
If you do not know your account password, you can request a password reset link to unlink your email address.
-
要请求新密码,请访问 https://github.com/password_reset。
-
输入与帐户关联的电子邮件地址,然后单击“发送密码重置电子邮件****”。
注意
只有主电子邮件地址和备用电子邮件地址可用于请求新密码。 除非你之前已选定特定的备用电子邮件地址,否则所有经过验证的电子邮件地址均视为备用电子邮件地址。
-
GitHub 会给你发送一封电子邮件,其中包含一个可用于重置密码的链接。 您必须在收到电子邮件后的 3 小时内单击此链接。 如果您没有收到来自我们的电子邮件,请确保检查垃圾邮件文件夹。
-
You will be prompted for your 2FA credentials. Under "More options", click Begin account or email recovery.
-
In the modal that appears, click I understand, get started.
-
要开始解除关联,请单击“开始解除电子邮件关联”。****
-
在“解除电子邮件关联”屏幕上,单击“继续”****。 GitHub 会向该帐户上的每个电子邮件发送一个验证链接。
-
在你要取消链接的电子邮件帐户的收件箱中,打开主题为“[GitHub] 取消链接此电子邮件”的电子邮件。
- 或者,如果要取消链接多个电子邮件帐户,请在要取消链接的每个帐户的收件箱中打开主题为“[GitHub] 取消链接此电子邮件”的电子邮件,然后完成以下步骤。
-
在电子邮件中,单击“取消链接此电子邮件”。
-
要完成解除电子邮件关联,请单击“解除关联”****。
-
或者,如果要创建新帐户并链接新近取消链接的电子邮件,请单击“创建新帐户”。
注意
还可以将已取消链接的电子邮件链接到已存在的 GitHub 帐户。 请参阅“添加电子邮件地址到 GitHub 帐户”。
-
或者,如果你在锁定的帐户上设置了任何形式的付款,请通过 GitHub 支持门户 联系我们,以取消将来的付款。 例如,你可能有付费订阅或通过 GitHub Sponsors 赞助开发人员。 如果你是通过 GitHub Sponsors 赞助的,请提及这一点,以便团队可以帮助你迁移赞助。