![](https://videos.teamtreehouse.com/stills/DevTools-GitBranchesMerging-Trailer-stills-0.jpg?token=6991e4eb_4ca97928fe2d3fa3bdea2c6e1c9d8d0d5b6e7d2f)
- Development Tools
- Intermediate
About this Course
This course introduces the concept of branches in Git and shows practical uses for managing both local development and collaborative workflows.
What you'll learn
- How Git branches work
- Creating new branches
- Merging branches
- Pull Requests on GitHub
Branches
Git branches are like alternate timelines for your code. They let you work on several different features or bug fixes at once, without the sets of changes interfering with each other.
9 stepsMerging
You have two branches. Both have changes you need, but when you check one out the changes in the other are no longer available. How do you get access to both at once? You merge the branches!
4 stepsRemote Branches
Collaborating with other developers is one of the biggest reasons to use Git. And to do that, you need to be able to bring changes from their Git repositories into your repo. You also need to be able to share changes from your repo to their repos. You do that using remote branches.
8 stepsBranches on Git Hosting Services
Pushing and pulling directly to and from your collaborators' Git repos is a good skill to have. But most developers today work through a Git hosting service like GitHub, GitLab, or Bitbucket. Let's see how to apply what we've learned using a hosted repo.
5 stepsTeacher
-
Jay McGavren
Resident Ruby and Go teacher for Treehouse. Author of Head First Ruby, a tutorial book on the core Ruby language.