O'Reilly logo

Learn Git in a Month of Lunches by Rick Umali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required