注意
- 您无法验证可用电子邮件地址服务中的电子邮件地址(允许您使用在一段时间后过期的临时地址接收电子邮件的服务)。 如果要将个人电子邮件地址保密,可以使用 GitHub 提供的
noreply
电子邮件地址。 有关详细信息,请参阅“Setting your commit email address”。 - If you're a member of an 具有托管用户的企业, you cannot make changes to your email address on GitHub. 有关详细信息,请参阅“GitHub 帐户类型”。
-
在 GitHub 任意页面的右上角,单击个人资料照片,然后单击 “设置”****。
-
在侧边栏的“访问”部分,单击“ 电子邮件”。
-
在“添加电子邮件地址”中,键入你的电子邮件地址并单击“添加”。
-
If you'd like to associate the email address with your web-based Git operations, select it from the "Primary email address" dropdown menu.
Troubleshooting adding an email
If you see an error message when you try to add an email address to your account, you may be experiencing one of the following issues.
Email already in use
If you see the error message Error adding EMAIL: email is already in use
, it means the email address is already linked to another GitHub account. An email address can only be associated with one GitHub account at a time.
To use this email with a different account, follow these steps:
- Sign in to the account currently linked to the email address and remove it from that account.
- If you don’t have access to the account, request a password reset email to recover it. See 更新 GitHub 访问凭据.
Email linked to a 托管用户帐户
If the email address that you are trying to add is provided to you by your organization, you may see the Error adding EMAIL: email is already in use
error when your organization has created a 托管用户帐户 for you in their 具有托管用户的企业.
Reach out to your site administrator or internal IT helpdesk to learn about their deployment of GitHub Enterprise Cloud and how to access the account. You may be able to sign into the GitHub Enterprise Cloud application via the organization's identity provider (IdP).
If you want to use your email address with a personal account, you must sign in to your 托管用户帐户 and unverify the email in your account settings. The email will remain linked to your 托管用户帐户, allowing you to access the account through your organization's IdP.
However, some third-party apps or services may not function properly with a 托管用户帐户 that has an unverified email address.