A Guide to Git Branching

31

In this third article on getting started with Git, learn how to add and delete Git branches.

In my two previous articles in this series, we started using Git and learned how to clone, modify, add, and delete Git files. In this third installment, we’ll explore Git branching and why and how it is used.

Picture this tree as a Git repository. It has a lot of branches, long and short, stemming from the trunk and stemming from other branches. Let’s say the tree’s trunk represents a master branch of our repo. I will use master in this article as an alias for “master branch”—i.e., the central or first branch of a repo. To simplify things, let’s assume that the master is a tree trunk and the other branches start from it.

Read more at OpenSource.com