You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Azure Repos and Azure Artifacts are the source control and package management components of Azure DevOps. Together, they provide a secure, scalable foundation for managing your code and its dependencies throughout the development lifecycle.
Azure Repos provides unlimited free private Git repositories with enterprise-grade features for code collaboration.
# Clone a repository
git clone https://dev.azure.com/myorg/myproject/_git/my-repo
# Create a new branch
git checkout -b feature/add-user-api
# Push and set upstream
git push -u origin feature/add-user-api
| Setting | Description |
|---|---|
| Default branch | The main branch (usually main) |
| Permissions | Who can read, contribute, manage, and force-push |
| Branch policies | Quality gates applied to specific branches |
| Cross-repo policies | Policies that apply to all repositories in a project |
| Commit message validation | Enforce commit message formats |
Branch policies are one of the most important features of Azure Repos. They enforce quality standards before code reaches your main branch.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.