From the course: Git: Branches, Merges, and Remotes
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Branching overview
- [Instructor] In this chapter, we're going to be talking about branches in Git. Branches are one of the most powerful features in Git, in large part because of how easy they are to use. It's as if Git wants you to branch, and getting the most out of Git will mean using branches often and effectively. In Git, branches are cheap. They're easy to create, they don't take a lot of processor power, they don't take up a lot of storage space, they're easy to delete, and they're easy to work with. That means branches make it easy to try new ideas. Let's imagine that you have your master branch that you're working on, and suddenly you get an idea for something, but you're not sure if it's going to work out or not. Instead of making a lot of commits to your master branch and then trying to undo those if it doesn't work out, instead, you can create a new branch and try your ideas there. If those ideas don't work out, you just throw away the branch, and you haven't tainted your master timeline…
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)
Branching overview4m 33s
-
(Locked)
Create branches3m 18s
-
(Locked)
Switch branches2m 27s
-
Create and switch branches3m 22s
-
(Locked)
Switch branches with uncommitted changes3m 39s
-
(Locked)
Compare branches4m 39s
-
(Locked)
Rename branches2m 21s
-
(Locked)
Delete branches4m
-
(Locked)
Configure command prompt6m 46s
-
(Locked)
-
-
-
-
-
-