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

Branching overview

From the course: Git: Branches, Merges, and Remotes

Start my 1-month free trial

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…

Contents