5
votes

I am new to Visual Studio and Azure DevOps. I have created an ASP.NET and C# project on Visual Studio, and now I want to save it to an Azure DevOps repo. This repo exists and I have access to it.

How to save this project to that repo from within Visual Studio 2019?

Apologies if it sounds silly but I could not find a decent tutorial showing this.

1
Replace Azure DevOps with Git Server or Remote Git. That's what it is. If the repo already exists, you can clone the remote repo, add the changes to the local repo, commit and pushPanagiotis Kanavos

1 Answers

6
votes
  1. Navigate to the Push view in Team Explorer by choosing the Visual Studio Unpublished Changes Status Bar icon in the status bar enter image description here. You can also select Sync from the Home view in Team Explorer.

  2. In the Push view in Team Explorer, select the Publish Git Repo button under Push to Visual Studio Team Services.

    enter image description here

  3. Verify your email and select your account in the Team Services Domain drop-down.

  4. Enter your repository name and select Publish repository.

    enter image description here

This creates a new project in your account with the same name as the repository. To create the repo in an existing project, click Advanced next to Repository name and select a project.

  1. Your code is now in a Git repo in Azure Repos. You can view your code on the web by selecting See it on the web.

    enter image description here