Every time I boot an Azure Dev Ops project, I'm desperately looking for ways to change the default branch. This time I've decided to write an article to help you out if you have the same problem as me, and I'll fix myself in six months!

Original illustration unavailable

The Problem

The configuration to define the default branch is not in the “Branches” menu of the Repos” part, which is my first reflex to try to define a default branch.

Original illustration unavailable

But where 's the menu ?

When you're on your project, click the menu called “Project Settings” at the bottom right of your screen.

Original illustration unavailable

Then go to the menu “Repositories”

Original illustration unavailable

In this menu you will have a list of branches and on each branch you have a context menu with the option Set as default branch”

Original illustration unavailable

And here we are, changing the project's default branch! I hope I saved someone else time. 🙂

Happy coding 🙂