Kyle Burkett
Kyle Burkett

Reputation: 1443

How can I link multiple email address to one user in Azure DevOps?

Our organization has users making commits from home or 'out of the office' frequently. I've noticed a lot of commits from personal email addresses (most likely when the users are working on their own device).

Personal email commit

Organizational email commit

These two commits are from the same person, only using a different email address likely because they're committing from a different pc with different global git config. I'd like to link both of these email addresses to the same user account similiar to what GitHub allows (you must have an account to reach this account settings link):

https://github.com/settings/emails

How can I do this in Azure DevOps?

Upvotes: 7

Views: 1938

Answers (1)

Philippe
Philippe

Reputation: 31227

Perhaps you should commit a .mailmap file to map different mails to one.

See https://git-scm.com/docs/git-shortlog#_mapping_authors or https://github.com/sympy/sympy/wiki/Using-.mailmap

PS:

These two commits are from the same person, only using a different email address likely because they're committing from a different pc with different global git config.

Perhaps these persons should not forgot to change settings for one repository or even better, use conditional include

Upvotes: 5

Related Questions