GitHub uses your commit email address to associate commits with your GitHub account. You can choose the email address that will be associated with the commits you push from the command line as well as web-based Git operations you make.
If you'd like to keep your personal email address private, you can use a GitHub-provided
no-reply email address as your commit email address. To use your
noreply email address for commits you push from the command line, use that email address when you set your commit email address in Git. To use your
noreply address for web-based Git operations, set your commit email address on GitHub and choose to Keep my email address private.
If you haven't enabled email address privacy, you can choose which verified email address to author changes with when you edit, delete, or create files on GitHub. If you enabled email address privacy, then the commit author email address cannot be changed and is
email@example.com by default.
You can also choose to block commits you push from the command line that expose your personal email address.
To ensure that commits are attributed to you and appear in your contributions graph, use an email address that you've added to your GitHub account, or the GitHub-provided
noreply email address provided to you in your email settings.
Note: If you created your GitHub account after July 18, 2017, your GitHub-provided
no-reply email address is a seven-digit ID number and your username in the form of
IDfirstname.lastname@example.org. If you created your GitHub account prior to July 18, 2017, your GitHub-provided
no-reply email address is your username in the form of
email@example.com. You can get an ID-based GitHub-provided
no-reply email address by selecting (or deselecting and reselecting) Keep my email address private in your email settings.
If you use your GitHub-provided
noreply email address to make commits and then change your username, those commits will not be associated with your GitHub account. This does not apply if you're using the ID-based GitHub-provided
noreply address. For more information, see "What happens when I change my username?"