Why is the Azure repo branch defaulting to main instead of master?

3.1k Views Asked by At

I have created a new repository in azure repos and the branch name is defaulting as "main", whereas my expectation is it should have been master.

Please explain if someone knows the reason.

1

There are 1 best solutions below

0
On BEST ANSWER

Recently default branch name was changed from master to main. Please check it here - Azure Repos default branch name

What if I want to keep using master?

If you prefer not to change, you should enable this feature and set master as your preferred branch name. Then, when the default changes to main, your repositories will continue to use master.

But you can change it here:

enter image description here