From the course: Git for Teams
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
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 satisfied with my selections, I go ahead and click on the Create Branch…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Teaming with remote platforms overview1m 39s
-
(Locked)
Remote platform selection4m 19s
-
(Locked)
GitLab installation4m 16s
-
GitLab overview4m 36s
-
(Locked)
User account setup4m 44s
-
(Locked)
Account administration and preferences3m 17s
-
(Locked)
Keeping secrets3m 30s
-
(Locked)
Git workflows1m 11s
-
(Locked)
Trunk-based development3m 13s
-
(Locked)
Git flow3m 35s
-
(Locked)
Protecting branches4m 42s
-
(Locked)
Issues6m 59s
-
(Locked)
Feature branches6m 4s
-
(Locked)
Code reviews4m 4s
-
(Locked)
Merging feature branches4m 18s
-
(Locked)
Git Flow wrap-up1m 51s
-
(Locked)
-
-
-