Skip to main content

Verifying your email address

Verifying your primary email address ensures strengthened security, allows GitHub staff to better assist you if you forget your password, and gives you access to more features on GitHub.

About email verification for personal accounts

You can verify your email address after signing up for a new account, or when you add a new email address. If an email address is undeliverable or bouncing, it will be unverified.

If you do not verify your email address, you will not be able to:

  • Create or fork repositories
  • Create issues or pull requests
  • Comment on issues, pull requests, or commits
  • Authorize OAuth app applications
  • Generate personal access tokens
  • Receive email notifications
  • Star repositories
  • Create or update projects
  • Create or update gists
  • Create or use GitHub Actions
  • Sponsor developers with GitHub Sponsors
  • Accept organization invitations

警告

  • 您无法验证可用电子邮件地址服务中的电子邮件地址(允许您使用在一段时间后过期的临时地址接收电子邮件的服务)。 如果要将个人电子邮件地址保密,可以使用 GitHub 提供的 noreply 电子邮件地址。 有关详细信息,请参阅“Setting your commit email address”。
  • 如果您所在的组织将电子邮件通知限于已批准的电子邮件域,则您需要验证该域的电子邮件地址才可接收有关组织中活动的电子邮件通知。 有关详细信息,请参阅“限制组织的电子邮件通知”。

About email verification for 托管用户帐户

For Enterprise Managed Users (EMUs), email addresses are no longer automatically verified. This prevents unauthorized access and potential data leaks from third-party GitHub Apps and OAuth applications that rely on email addresses as a primary identifier.

注意

If you are a member of an 具有托管用户的企业 and your account was created after August 1st, 2024, your email address is unverified by default.

Having an unverified email address does not affect most actions you can take on GitHub. However, we recommend email verification to prevent potential exploitation of third-party GitHub Apps and OAuth apps which may not have followed our best practices around secure authentication methods for apps (see 创建 OAuth 应用的最佳做法 and 创建 GitHub 应用的最佳做法).

Until you verify your email address, your account will use a placeholder email address with your enterprise's shortcode appended for certain operations. For example, the 用户的 REST API 终结点 and 电子邮件的 REST API 终结点 will return email+shortcode@domain.com. In rare cases, you may find that your company's email provider does not handle the placeholder email correctly, or that the placeholder prevents you from accessing some third-party GitHub Apps and OAuth apps.

You cannot verify an email address for your 托管用户帐户 if the email address is already verified by another account on GitHub.com. To verify the email, you will need to unverify the email address on the conflicting account, then verify it for your 托管用户帐户. See Changing your primary email address.

Once you verify an email with a 托管用户帐户, you won't be able to use the email to sign up for a personal account on GitHub.com.

注意

If you need to use the same email address for both your 托管用户帐户 and another GitHub account (for example, for innersource, open source, or other valid use cases), you must sign in to your managed user account and unverify the email in your account settings.

The email will still be linked to your managed user account, so you can continue signing in through your organization's or enterprise's identity provider (IdP). However, because the email is unverified, it may affect your access to third-party applications that identify users based solely on email address.

Verifying your email address

  1. 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击 “设置”****。

  2. 在侧边栏的“访问”部分,单击“ 电子邮件”。

  3. Under your email address, click Resend verification email.

    Screenshot of email addresses on the "Emails" page. Under an email address, a link, labeled "Resend verification email," is outlined in orange.

  4. GitHub will send you an email with a link in it. After you click that link, you'll be taken to your GitHub dashboard and see a confirmation banner.

Troubleshooting email verification

Unable to send verification email

您无法验证可用电子邮件地址服务中的电子邮件地址(允许您使用在一段时间后过期的临时地址接收电子邮件的服务)。 如果要将个人电子邮件地址保密,可以使用 GitHub 提供的 noreply 电子邮件地址。 有关详细信息,请参阅“Setting your commit email address”。

The verification link expires after 24 hours. If you don't verify your email within 24 hours, you can request another email verification link. For more information, see Verifying your email address.

If you click on the link in the confirmation email within 24 hours and you are directed to an error page, you should ensure that you're signed into the correct account on GitHub.

  1. Sign out of your account.
  2. Quit and restart your browser.
  3. Sign in to your account.
  4. Click on the verification link in the email we sent you.

Email is already verified by another user

If you see the error message Error adding EMAIL: Email is already verified by another user, you must either unverify the email for the other account before proceeding, or choose a different email address to verify.

To unverify an email address, delete it in your email settings, then optionally re-add it without verifying to keep any commits linked to your account. See Changing your primary email address.

Further reading