Author : HASSAN MD TAREQ | Updated : 2020/05/28

Introduction

  • Azure Repos is a set of version control tools that you can use to manage your code
  • Azure Repos provides Git repositories or Team Foundation Version Control (TFVC) for source control of your code
  • Azure Repos provides two types of version control:
    • Git: distributed version control
    • Team Foundation Version Control (TFVC): centralized version control
  • Links:

Overview

Azure DevOps repository overview

Create repository prerequisites

  • Organization: create-new-organization if organization does not exist
  • project:
    • See: adding-project-to-organization
    • By default a repository will be created when creating new project (repository name is same as project name)
    • The project is a top level container that can hold one or more repositories

Create repository in portal

  • Use default repository created by ‘New Project’ creation or add new repository
  • Push code from visual studio to repository

Create repository from Visual Studio

  • Login to Visual Studio with same credential as Azure DevOps, so that Visual studio can manage DevOps on behalf of you
  • Create new Visual Studio project
  • File > Add to source control
  • Team Explorer > Manage Connections (plug icon at top) > Double click on newly created project
  • Click ‘Sync’
  • Push to Azure DevOps Services > Publish Git Repo
  • Set Organization, Project (click advanced to see) > Repository name
  • Publish repository

Azure DevOps - create repository from visual studio Step 1

Azure DevOps - create repository from visual studio Step 2

Azure DevOps - create repository from visual studio Step 3

Azure DevOps - create repository from visual studio Step 4

Azure DevOps - create repository from visual studio Step 5

Azure DevOps - create repository from visual studio Step 6

Deleting repository

  • Select organization > Select Project
  • Left panel (bottom) > Project setting
  • Scroll to bottom > Repositories
  • Repository list item (on right side, tripple dots as more options) > delete