# Azure DevOps: change the default branch

> 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…

- Author: Jérôme Giacomini
- Language: en
- Canonical URL: [Azure DevOps: change the default branch](https://jeromegiacomini.net/articles/2020/04/21/azure-devops-change-the-default-branch)
- Published: 2020-04-21
- Last modified: 2026-09-05
- Topics: .NET, Azure, DevOps

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!

![](https://jeromegiacomini.net/Blog/wp-content/uploads/2020/04/tenor.gif)

## 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.

![](https://jeromegiacomini.net/Blog/wp-content/uploads/2020/04/image-1.png)

## But where 's the menu ?

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

![](https://jeromegiacomini.net/Blog/wp-content/uploads/2020/04/image-2.png)

Then go to the menu “Repositories”

![](https://jeromegiacomini.net/Blog/wp-content/uploads/2020/04/image-3.png)

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”

![](https://jeromegiacomini.net/Blog/wp-content/uploads/2020/04/image-4.png)

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

Happy coding 🙂
