You can set a primary email address on GitHub that's associated with web-based Git operations you perform such as edits and merges. Alternatively, you can choose to keep your personal email address private and use a GitHub-provided noreply email address for your web-based Git operations.

After changing your commit email address on GitHub, the new address will be visible in all of your future web-based Git operations. Any commits you made prior to changing your commit email address are still associated with your previous email address. If you keep your email address private, you can also set your commit email address in Git to use your GitHub-provided noreply email address, and block command line pushes that expose your personal email address.

For more information on commit email addresses, including your GitHub-provided noreply email address, see "About commit email addresses."

  1. In the upper-right corner of any page, click your profile photo, then click Settings. Settings icon in the user bar
  2. In the left sidebar, click Emails. Emails tab

  3. In "Add email address", type your email address and click Add. Email addition button

  4. Verify your email address.

  5. In the "Primary email address" list, select the email address you'd like to associate with your web-based Git operations. Selection for primary email address

  6. To keep your email address private when performing web-based Git operations, click Keep my email address private. Image of checkbox to keep your email address private

Further reading