Updated on 2025-09-23 GMT+08:00

Configuring a Commit Email Address

What Is a Commit Email Address

In CodeArts Repo, when you commit code or create a merge request (MR), the system uses the commit email address to identify the committer.

However, the system uses a virtual email address by default, which may cause inconsistency between the commit information and the actual email address, affecting the accuracy of commit records.

To solve this, you need to set and verify your commit email address for accurate commit records. Therefore, CodeArts Repo provides this feature to meet your needs for accurate commit records.

In Git, a commit email address is the email address (author's mail) associated with each code commit. The commit email address is used for the following purposes:

  • Author Identification: Each commit links to a specific developer via their email, identifying who made the changes.
  • Collaboration tracking: Helps the team view the personnel who modify the code.
  • Legal attribution: Helps to clearly establish the copyright for each code contributor.

Constraints

Table 1 Constraints

Item

Description

Format constraint

  • The generated email address must comply with the standard email address format. The default commit email address is user_iid@example.com. You are advised to update the email address as soon as possible.
  • The email address can contain a maximum of 200 characters.

Function constraint

The commit email address must be unique and cannot be the same as that of other users.

Permission constraint

Only the user can query the commit email address.

Procedure

  1. Log in to CodeArts Repo homepage, click the avatar in the upper right corner, and click This Account Settings.
  2. In the left navigation pane, choose Repo > Commit Email. The commit email address configuration page is displayed.
  3. As shown in the following figure, enter the commit email address to be configured in the first row and click Get Code.

  4. Enter the verification code and click OK to complete the commit email address configuration.

Viewing the Commit Email Address

  1. Log in to CodeArts Repo homepage, click the avatar in the upper right corner, and click This Account Settings.
  2. In the left navigation pane, choose Repo > Commit Email. The commit email address configuration page is displayed.
  3. On the current page, click to view the encrypted commit email address.

    As shown in the following figure, if Default is displayed, the current commit email address is the one initialized by the system. You are advised to update the email address as soon as possible.

Helpful Links

After configuring the commit email address, you can modify the code file to view the configuration result.

In this example, the Test_File file is created in the repository Test_Repo.

  1. As shown in the following figure, create the Test_File file in the repository Test_Repo.

  2. Click Clone/Download in the upper right corner to copy the HTTPS address.

  3. Open the local Git client and clone the repository Test_Repo to the local host.

    If the preceding information is displayed, the cloning is successful.

  4. Run the following command to switch to the repository Test_Repo:

    cd Test_Repo

  5. Run the following command to view the Test_File file created in the preceding step:

    git log

    As shown in the following figure, the commit information of the Test_File file is displayed. The commit email address in the red box is the one configured.