A Git branch is a line of development in the repository. Branches are used to isolate working on different features, versions or environments. The main branch is called the master branch and is where all other branches merge into.