#branch

7 commande(s) avec le tag #branch

Commandes partagées par la communauté CodeBox, copiables en un clic.

Crée une nouvelle branche et s’y positionne immédiatement.

bash
git checkout -b nouvelle-branche

Supprime une branche locale.

bash
git branch -d nom-branche

Crée une nouvelle branche.

bash
git branch nouvelle-branche

Liste toutes les branches locales.

bash
git branch

Permet de basculer vers une autre branche existante.

bash
git checkout nom-branche

Fusionne une branche dans la branche actuelle.

bash
git merge nom-branche

Crée une branche et s’y déplace directement.

bash
git switch -c nouvelle-branche