Branche principal (main)
Pourquoi ?
Github Pages
Déployer la branche main
En production
Branche main déployé sur un serveur web
Types de branches
- Branche déployé sur un serveur web (ex: main, prod, test, ...)
- 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 ...