0

We are using VS2015 to access Git Repos stored in TFS onprem 2015 update 1.

We have users using both Visual Studio and TortoiseGit for committing and pushing changes from their local repo to the central repository.

In both cases the user is authenticated in windows. It is the same user using an AD account. If the user commits via TortoiseGit the name on the commit is "Mycompany\username" If the user commits via Visual Studio the name on the commit is just "username"

This causes some problems with the Web interface for TFS. If you select the code tab,select a repo, click "History" you have an option to show "My Commits" or "All commits". The web interface only shows the commits performed via visual studio (the one without the AD domain name).

I've checked the settings for TortoiseGit and Git setting in VS and they have the same values: MyCompany\username

Is there a way to prevent this inconsistency so the user can see ALL of their commits regardless of how they were committed?

1 Answer 1

0

The Git commit user ID in the history of the web portal is only related to the setting in VS.

enter image description here

You can view the result in history tab.

enter image description here

However, "my commits" is related to the display name of the web portal. If you changed the name and click "my commits" , it will only show the commits by the new name.

enter image description here

Unfortunately, if you want to change the name to company\user in the setting of your profile. You will get an error returned as below.

enter image description here


WorkAround

For your situation:

Method 1: Change Mycompany\username to username in both settings of TFS and TortoiseGit

Method 2: Use the Advanced search in the commits page and specify the username in the user option such as Mycompany\name

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.