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
Item |
Description |
---|---|
Format constraint |
|
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
- Log in to CodeArts Repo homepage, click the avatar in the upper right corner, and click This Account Settings.
- In the left navigation pane, choose Repo > Commit Email. The commit email address configuration page is displayed.
- As shown in the following figure, enter the commit email address to be configured in the first row and click Get Code.
- Enter the verification code and click OK to complete the commit email address configuration.
Viewing the Commit Email Address
- Log in to CodeArts Repo homepage, click the avatar in the upper right corner, and click This Account Settings.
- In the left navigation pane, choose Repo > Commit Email. The commit email address configuration page is displayed.
- 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.
- As shown in the following figure, create the Test_File file in the repository Test_Repo.
- Click Clone/Download in the upper right corner to copy the HTTPS address.
- 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.
- Run the following command to switch to the repository Test_Repo:
cd Test_Repo
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot