Forked from
R3 / school / courses
998 commits behind the upstream repository.
-
Laurent Heirendt authoredLaurent Heirendt authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
branches.md 1.88 KiB
Development scheme
Generally, in a repository, there are guidelines for contributing.
A common development scheme is dual with a:
-
development version of the code on
develop
-
stable version of the code on
master
A **version** of the code is referred to as a **branch**.

In the practice repository, the development branch is called `develop`!

Branches
A version of the code (i.e., a branch) is made up of a sequence of code changes.
These individual code changes are called **commits**.
For instance, the master
and develop
branches can be represented as a timeline:

Switch between branches
List all branches of the repository with
$ git branch -a
Exit by typing q
. The branch with the ***** is the current branch.
Checkout another branch ```bash $ git checkout branchName ```
You can switch to the `develop` branch with ```bash $ git checkout develop ```