Table of contents
Git User Identity
A git user can identify himself on his local computer using the following commands:
$ git config --global user.name "John Doe" $ git config --global user.name firstname.lastname@example.org
Or, for specific repository:
$ git config user.name "John Doe" $ git config user.name email@example.com
Then every commit is supported by the configured user information.
Hosting services (like GitHub and BitBucket, for example) try to match these data in commits with a particular account:
- If the email is unknown, it just displays the name from the commit. If there is no Jira user associated with the email, the Git add-on will use the author's name from the commit and displays this name without any associated links.
- If an email is configured in the local repository, the account is detected and will be displayed. The Git add-on will use the email from a commit and will search for a Jira user using this email. If the Jira user is found, the associated link to his Jira profile is displayed with the accompanying Jira avatar beside the name.