13

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?

7
  • How are you connecting to a different project? You're closing the solution and opening a new one? Do you have on solution that contains projects of both TFVC and Git? Commented Sep 16, 2015 at 14:58
  • Typically clicking the Manage Connections button (the green plug icon). then double clicking on a project. And no...always two completely separate projects. Commented Sep 16, 2015 at 15:06
  • 1
    Have you remembered to switch Source Control provider in VS (Tools >> Options >> Source Control)? Commented Sep 17, 2015 at 7:22
  • 1
    I work only with git in vsts and right now VS2015 is doing the same for me the other way around. I cannot work because of it wont clone vsts repositories. Commented Feb 3, 2016 at 10:28
  • I have the same issue, just the other way around, as well. I want to access a GIT branch, but VS can only show me "source control explorer" and that TFS stuff. Commented May 11, 2018 at 16:16

1 Answer 1

19

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.

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

2 Comments

As depressing as it is, this seems to be correct. Whats worse, is that TFS was selected, I had to switch it to GIT and back.
@ChadSchouggins for me have equal situation

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.