Introduction
- Azure Repos is a set of version control tools that provide version control for source code management
- It allows developers to collaborate on code changes, track history, and manage branches effectively
- Azure Repos provides two types of version control:
- Git: distributed version control
- Team Foundation Version Control (TFVC): centralized version control
- See: https://docs.microsoft.com/en-us/azure/devops/repos/get-started/what-is-repos
Overview
Prerequisites for creating repository
- 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
- Click “Repos”
- Click dropdown icon on top navigation breadcrumb
- New 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
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