Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I switch the default branch for my build pipeline

Tags:

azure-devops

I am working on this question and I need to switch the default branch of my Azure Repository.

How do I do this?

I can see where to switch the Compare tag but not the Default tag.

branches

like image 729
Kirsten Avatar asked Oct 03 '18 21:10

Kirsten


2 Answers

In the Get Sources properties.

here in the pipeline

like image 171
Kirsten Avatar answered Sep 22 '22 19:09

Kirsten


Here's an article on how to do this: https://mattvsts.blogspot.com/2019/03/did-you-know-changing-default-and.html

The basic gist is to go to the repository settings in your project, then find your branch and right click to set as the default branch.

like image 33
mytydev Avatar answered Sep 25 '22 19:09

mytydev