O'Reilly logo

Bazaar Version Control by Janos Gyerik

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

Why use more than one branch?

In small, solo projects, branches can be useful in many ways, such as the following:

  • Separating the development of unrelated features that can be implemented independently
  • Switching between tasks
  • Experimenting with different approaches to solve some problem

In large projects with many collaborators, using multiple branches is inevitable in order to maintain multiple versions of the project in parallel.

Separating the development of new features

By using a dedicated branch to implement some new features or a set of related changes within the same topic, the changes can be cleanly isolated from other work in the project. This effectively eliminates side effects and instabilities caused by other unrelated changes in the project ...

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