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
![Azure DevOps repository overview](https://khtlqa.dm.files.1drv.com/y4m6A2XhyHNo7ObBO_RWTSCM0sCHvmEcrexX1oiGGvSDnsKjYplQ-wPVliC2KdmsDp2URsrsDrh5XOBDzLKByq3fGQl3NIbWvnHLVrj5rT_bHgDyiUZrjmQiLu1HBTnRchs19CraNg9tDnhlljJxSb_c01rlfpPyUj2mELOgWYqxJj-X0h5drVHlNnqqSxW4loExH1LVsX18vVjXRxZSQ4fAA?width=1899&height=777&cropmode=none)
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 new repository in Azure DevOps portal](https://by3301files.storage.live.com/y4mQJI68ujTpz8uQsvZg5LqYTWISOQvxx4s9Fre8KcbkQg9FmtwQA2ya89RjIPmeisj4PM7XWhFbGVyIDmOVdusKGOWuj17pfkdzdKFcoAXYm4lm0htjJvLyq4nO903ZLoNyrzbTF-b28ihI92NQV0MyHfdIrlJbCt5Mn3wdNVtfrBanba2t1Hv-GpzYM2F1VqU?width=1383&height=856&cropmode=none)
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