Branches

2.2. Branches#

A branch is a way to create and maintain different versions of a repository.

A branch:

  • offers the possibility to develop and test new features,

  • allows to maintain various versions of a repository,

  • is updated automatically with new commits being added.

branches are dynamic pointers

A branch only points to a specific commit. It doesn’t contain any data or changes but serves as a reference to a particular commit in the repository’s history.