Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 Team Explorer doesn't see existing local repository clone

Tags:

I have a Visual Studio online Team Project with a repository. I have been using this with VS 2013 for a while now.

I installed VS 2015 and connected to Visual Studio online in team explorer and chose the project in question.

however, under solutions it says:

You must clone the repository to open solutions for this project.

I did go to settings and edit my global settings to set my repository root correctly. (same location as set in Visual Studio 2013)

But, it is already cloned and on my local machine.

Why isn't VS 2015 Team Explorer seeing the existing repository folder? How can I fix this other than deleting the folder and doing clone again?

like image 670
PilotBob Avatar asked Aug 14 '15 19:08

PilotBob


People also ask

How do I clone a repository in Visual Studio 2015?

Cloning the repository from Visual Studio:Under the Local Git Repositories section, click the Clone link and paste the link copied in the previous step. Choose a folder on your local machine to copy the code to. Finally, click the Clone button located under.

How do I open a already cloned repository in Vscode?

Clone repositoryOpen the command palette with the key combination of Ctrl + Shift + P . At the command palette prompt, enter gitcl , select the Git: Clone command, and press Enter. When prompted for the Repository URL, select clone from GitHub, then press Enter.

How do I open a clone Git repository in Visual Studio?

Use the start window Open Visual Studio. On the start window, select Clone a repository. Enter or type the repository location, and then select the Clone button. You might be asked for your user sign-in information in the Git User Information dialog box.


1 Answers

Because Visual Studio 2013 maintains a list of the repositories that it's seen (and their remotes) separately from where VS 2015 stores this information.

Open Team Explorer, go to the Connect page, and in the Local Git Repositories section, click the Add button. Navigate to the repository that you cloned previously.

Since you're connected to the server, VS will realize that the repository you just opened is a clone of a repository in your server and enable the TFS functionality.

like image 100
Edward Thomson Avatar answered Sep 29 '22 14:09

Edward Thomson