Branche principal (main)

Pourquoi ?

Github Pages

Déployer la branche main

En production

Branche main déployé sur un serveur web

Types de branches

  1. Branche déployé sur un serveur web
    (ex: main, prod, test, ...)
  2. Branche de travail

Nouvelle fonctionnalité

Créer une branche

git branch "..."

Nomenclature de branches

  • feature/
  • bugfix/
  • hotfix/
  • chore/
  • experiment/

Ex : feature/add-form

Lister les branches

git branch

git branch --list

Naviguer entre les branches

git checkout ...

git switch ...

Démo switch

Fusionner des branches

git merge branche_1 branche_2

Démo merge

Supprimer une branche

git branch --delete ...

Livrable Educentre