Chapter 9. Taking a fork in the road

Branches are an important feature in many version control systems, but in Git, they’re especially important because they’re so easy to create. In this chapter, you’ll learn how to make branches in your repository. This is sometimes known as diverging your code base. If you want to add a new feature or fix a bug in your repository’s code, you’ll want to create a branch so you can do that work on a copy of your code.

This chapter also covers how to switch between branches, and how to delete branches by using the git branch command. You’ll learn how to jump back and forth among branches by using git checkout. In the next chapter, you’ll bring together (converge) your branched code base.

Branching does introduce ...

Get Learn Git in a Month of Lunches now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.