Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching source control contexts in Visual Studio Team Explorer

When I connect to a local Git repository in Visual Studio (2015), Team Explorer shows a Git-specific interface (Changes, Branches, Sync, etc.). When I then connect to a non-Git TFS project, it refuses to acknowledge this switch and continues to show this Git interface (as opposed to the desired TFS interface with My Work, Pending Changes, Source Control Explorer, etc). Whenever I click one of the Git menu options, I get a message saying

The current page is inactive because you are not connected to a Git team project

which is information of which I am fully aware, but rather than allowing to switch to "TFS mode", it suggests I connect to a Git project.

The only remedy I have found is to close and reopen VS, quite annoying. Is there a way to force this switch?

like image 314
Chad Schouggins Avatar asked Sep 16 '15 14:09

Chad Schouggins


1 Answers

I was having the same issues. It appears as though you have to switch back to the Microsoft Git Plugin and then switch back though Tools -> Options -> Source Control. I think while you can double click on a TFS project, the Team Explorer window doesn't reset unless its done from the options menu.

like image 188
Ryan Hill Avatar answered Oct 02 '22 18:10

Ryan Hill