How to Rename the Master Branch in Git in Azure DevOps from rename a git branch Watch Video
Preview(s):
Gallery
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)
Description: Azure DevOps doesn't technically allow you to rename branches-- but you can work around the issue by creating a new branch off master, setting the new branch as the default branch, and deleting the master branch. In this video, Redgate Advocate Kendra Little creates a new default branch named main, then updates a pipeline dependent on my default branch name. Here's the Microsoft documentation on this topic: https://docs.microsoft.com/en-us/azure/devops/repos/git/require-branch-folders?view=azure
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)