![git create branch from master git create branch from master](https://eliot-jones.com/images/git/git-branch.png)
#Git create branch from master how to#
In this post, we will go through how to rename the default branch from “ master” to “ main” in Azure Data Factory Git repositories hosted in GitHub and Azure DevOps. I fully support this change and will be doing the same in my projects. GitHub and Azure DevOps will be changing their default branch names to “ main” in 2020. The Git project, GitHub, and Azure DevOps are making changes to allow users to specify a different default branch name. This is problematic because it is not inclusive and is very offensive to many people. Historically, the default branch name in git repositories has been “ master”.
![git create branch from master git create branch from master](https://i.ytimg.com/vi/PpeT9OMs380/maxresdefault.jpg)
In most cases, the default branch is used. When connecting, you have to specify which collaboration branch to use. In Azure Data Factory, you can connect to a Git repository using either GitHub or Azure DevOps.