Improve steps for setting commit email

This commit is contained in:
Evan Read 2019-07-25 14:18:37 +00:00 committed by Marcia Ramos
parent bd899b80b1
commit f1ea767818
1 changed files with 16 additions and 15 deletions

View File

@ -147,39 +147,40 @@ You can also set your current status [using the API](../../api/users.md#user-sta
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21598) in GitLab 11.4.
A commit email, is the email that will be displayed in every Git-related action done through the
GitLab interface.
A commit email is an email address displayed in every Git-related action carried out through the GitLab interface.
You are able to select from the list of your own verified emails which email you want to use as the commit email.
Any of your own verified email addresses can be used as the commit email.
To change it:
To change your commit email:
1. Open the user menu in the top-right corner of the navigation bar.
1. Hit **Commit email** selection box.
1. Click on your avatar at the top-right corner of the navigation bar.
1. From the menu that appears, click **Settings**.
1. In the **Main settings** section, locate **Commit email** dropdown.
1. Select any of the verified emails.
1. Hit **Update profile settings**.
1. Press **Update profile settings**.
### Private commit email
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22560) in GitLab 11.5.
GitLab provides the user with an automatically generated private commit email option,
GitLab provides users with an automatically generated private commit email option,
which allows the user to not make their email information public.
To enable this option:
1. Open the user menu in the top-right corner of the navigation bar.
1. Hit **Commit email** selection box.
1. Select **Use a private email** option.
1. Hit **Update profile settings**.
1. Click on your avatar at the top-right corner of the navigation bar.
1. From the menu that appears, click **Settings**.
1. In the **Main settings** section, locate **Commit email** dropdown.
1. Select the "Use a private email" option.
1. Press **Update profile settings**.
Once this option is enabled, every Git-related action will be performed using the private commit email.
In order to stay fully annonymous, you can also copy this private commit email
In order to stay fully anonymous, you can also copy this private commit email
and configure it on your local machine using the following command:
```
git config --global user.email "YOUR_PRIVATE_COMMIT_EMAIL"
```sh
git config --global user.email <YOUR_PRIVATE_COMMIT_EMAIL>
```
## Troubleshooting