ABSTRACT

This chapter focuses Git branches, branching and merging, branch workflows as well as remote branches. Branches allow for parallel work, along with a well-demarcated separation of work-in-progress code with the stable as well as tried-and-tested code. The codebase of a Version Control Systems (VCSs) is variously referred to as a baseline, master, mainline, or trunk. The feature of branching is available in several VCSs available in the market, at present. In VCSs other than Git, branching is often an expensive process with regard to our time as well as the disk space available. Git branching is a tremendously useful feature because it permits the developers to fork out of the production version of code in order to be able to add a feature, or fix a bug, etc. The encapsulation of feature development also allows for the developers to leverage pull requests, and allows for the initiation of discussions and deliberations around particular branch developments.