5

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.

Shayki Abramczyk
  • 24,285
  • 13
  • 49
  • 65
Zizzipupp
  • 993
  • 6
  • 14
  • 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 push – Panagiotis Kanavos Oct 15 '19 at 08:37

1 Answers1

5
  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

Shayki Abramczyk
  • 24,285
  • 13
  • 49
  • 65
  • That's great, thanks. So I assume that, once the master is published, you should create a branch and work off of it. Is it correct that, in order to publish any new change, you have to: 1) Sync, 2) Commit, 3) Push? – Zizzipupp Oct 15 '19 at 10:26
  • 1
    You need commit and push, you can do these on the sync tab. – Shayki Abramczyk Oct 15 '19 at 15:25