Default branch name for new repos in Azure DevOps

Default branch name for new repos in Azure DevOps

Azure DevOps now has support to set up the default branch name for new repositories. For Azure DevOps Git Repositories, by default branch name is set to master, and whenever we create new repositories, it takes that as default. Now, you can set up a new name for your default branch, and all the new repositories will be initialized from the same.

Default branch name for new repos in Azure DevOps

By default branch name for new repositories settings is turned off, and the default name is set to “master“.

From the Project Settings, Navigate to Repositories then Settings, and “turn on” the feature.

Related Tip : 10 Azure DevOps Tips & Tricks that you should know

Once this is turned on, you can not set the default branch name for new repositories.

Once this is set, for any new repositories, will be initialized from this branch.

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.