lokimidgard
lokimidgard

Reputation: 1119

Map multiple emails (git commits) to same user in TFS

I have an tfs 2017 Server with users that commit with a different mail address than the mail address set in the domain account.

Is there a way to add additional mail addresses, so a commit with this mail addresses will be assinged to the correct user.

Upvotes: 1

Views: 275

Answers (1)

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51083

This could be achieved by edit the user's config info of the repo. When you first commit changes in VS, it will pop up a dialog to add/edit Git User Information.

enter image description here

Just add email Address with "," such as [email protected],[email protected],[email protected].

You could also change this in VS: Settings--Repository Settings/Global Settings--User Name&E-mail or directly use git command git config --global user.email to update the user's email info.

After this, when you check the author of commit, it will include the additional mail addresses for user account which commit/push to TFS. You could also filter the commit history with updated account in web portal.

enter image description here

Upvotes: 2

Related Questions