From the course: Git for Teams

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Protecting branches

Protecting branches - Git Tutorial

From the course: Git for Teams

Protecting branches

- [Instructor] In this lesson, we'll create and protect the branches required for using the GitFlow Workflow. You will learn how to create a long-running branch in GitLab and establish security to limit who can push to the branch. For our demonstration, we're going to log into GitLab as the maintainer user and we're going to be working with the flow project. So we'll click on the project to navigate into its area. From here, we're going to click on Repository and then select Branches. Within the Branches section, we can click the New Branch button to create our develop branch. Develop will be the long-running branch where we will merge all of our feature branches within the GitFlow Workflow. Once we've typed the branch name, we then select master. This means that, once we create the branch, develop will contain an exact copy of master. From there, develop can progress as we add our feature branches to it. Once…

Contents