gitvisual-studiotfs

Changing the tracked Git branch in Visual Studio


I setup a specific branch for 2 developers to code on.

Visually in visual studio it appears they are connected to the same branch

But I have discovered that they are infact working on separate branches

The branch tooltip shows that the tracked branch are different between the 2 of them, even though they are connected to the same branch name

This screenshot shows the sprint3 branch (by name) is tracked to the sprint3 branch

https://i.sstatic.net/H0oZa.jpg

This screenshot shows the sprint3 branch (by name) is tracked to the master branch

https://i.sstatic.net/NbGZB.jpg

How would I update the 2nd screenshot to point to the correct branch, so that all the code changes are together in a single branch?

Solved: I was able to fix the issue by opening the git config file and changing the branch merge pointer to the correct location


Solution

  • I was able to fix the issue by opening the git config file and changing the branch merge pointer to the correct location