Tutorial: Open a project from a repo
In this tutorial, you'll use Visual Studio to connect to a repository for the first time and then open a project from it.
If you haven't already installed Visual Studio, go to the Visual Studio downloads page to install it for free.
Open a project from a GitHub repo
How you open a project from a GitHub repo by using Visual Studio 2019 depends on which version you have. Specifically, if you've installed version version 16.8 or later, there's a new, more fully integrated Git experience in Visual Studio available to you.
But no matter which version you've installed, you can always open a project from a GitHub repo with Visual Studio.
Clone a GitHub repo and then open a project
Open Visual Studio 2019.
On the start window, select Clone a repository.
Enter or type the repository location, and then select Clone.
You might be asked for your user sign-in information in the Git User Information dialog box. You can either add your information or edit the default information it provides.
Select Save to add the info to your global .gitconfig file. (Or, you can choose to do this later by selecting Cancel.)
Next, Visual Studio automatically loads and opens the solution from the repository.
If your repository contains multiple solutions, you will see them in Solution Explorer. You can view the list of solutions by selecting the Switch Views button in Solution Explorer.
Solution Explorer then gives you the option to open the root folder in Folder View or to select a solution file to open.
To toggle the view, select the Switch Views button again.
Tip
You can also use the Git menu in the Visual Studio IDE to clone a repo and open a project.
Open a project locally from a previously cloned GitHub repo
Open Visual Studio 2019.
On the start window, select Open a project or solution.
Visual Studio opens an instance of File Explorer, where you can browse to your solution or project, and then select it to open it.
If you've opened the project or solution recently, select it from the Open recent section to quickly open it again.
Tip
You can also use the Git menu in the Visual Studio IDE to open local folders and files from a repo that you've previously cloned.
Start coding!
Note
For information that's specific to Visual Studio 2017, see the Open a project from a repo in Visual Studio 2017 page.
Connect to an Azure DevOps server
What you see when you connect to an Azure DevOps server by using Visual Studio 2019 depends on which version you have. Specifically, if you've installed version version 16.8 or later, we've changed the UI to accommodate a new, more fully integrated Git experience in Visual Studio in Visual Studio.
But no matter which version you have installed, you can always connect to an Azure DevOps server with Visual Studio.
Open Visual Studio 2019.
On the start window, select Clone a repository.
In the Browse a repository section, select Azure DevOps.
If you see a sign-in window, sign in to your account.
In the Connect to a Project dialog box, choose the repo that you want to connect to, and then select Clone.
Tip
If you don't see a pre-populated list of repos to connect to, select Add Azure DevOps Server to enter a server URL. (Alternatively, you might see a "No servers found" prompt that includes links to add an existing Azure DevOps Server or to create an Azure DevOps account.)
Next, Visual Studio opens Solution Explorer that shows the folders and files.
Select the Team Explorer tab to view the Azure DevOps actions.
Next steps
If you're ready to code with Visual Studio, dive into any of the following language-specific tutorials:
- Visual Studio tutorials | C#
- Visual Studio tutorials | Visual Basic
- Visual Studio tutorials | C++
- Visual Studio tutorials | Python
- Visual Studio tutorials | JavaScript, TypeScript, and Node.js