Branches

A branch is an independent line of development, which lets you work on a feature or a fix without touching the main branch. In practice, it is a lightweight pointer to a commit. You create it with git branch or git switch -c and switch with git switch.

Example

git switch -c fonctionnalite-panier

Related concepts

The whole glossary