From the course: Programming Foundations: Version Control with Git
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Working with branches - Git Tutorial
From the course: Programming Foundations: Version Control with Git
Working with branches
- [Instructor] Now that we know the benefits of using a Git Branching Workflow, let's look at how to create branches using GitHub Desktop. Let's say I want to redesign the website, which can be a big project. I can use feature branches to break down the redesign into smaller tasks. Let's continue to use the personal site project for this exercise. To create a new branch, go to the main menu and select branch, new branch. I'll name this theme dash update and use it for changes related to the visual design only, such as colors and fonts. Currently, there is only one branch, the main branch, this is where the copy will be made from. When we have multiple branches, we can switch between them, which is called checking out. The branch you have checked out will be the active working copy. Click Create Branch to complete this step. In the repository menu under the current branch section, we can now see that the theme update branch has been created and checked out. Now let's make some changes…
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)
Using Git GUIs1m 10s
-
(Locked)
Setting up GitHub Desktop4m 43s
-
(Locked)
Working with repositories3m 49s
-
(Locked)
Adding and committing changes6m 44s
-
(Locked)
What is Git Branching?1m 26s
-
(Locked)
Working with branches3m 45s
-
(Locked)
Merging a branch2m 39s
-
(Locked)
Challenge: Putting it all together1m 18s
-
(Locked)
Solution: Putting it all together4m 15s
-
(Locked)
-