Comment déplacer une branche
Nous allons apprendre à déplacer une branche vers un commit existant.
Pour le moment, l’état du projet Git est le suivant.

Créer une branche
Avant, nous allons créer une nouvelle branche.
git branch test

Déplacer la branche test
Maintenant, nous allons déplacer la branche test
sur le commit 6210603
.
git branch --force test 6210603

Et voilà !
Supprimer la branche test
Puisque, comme son nom l’indique la branche test
n’existe que pour tester le déplacement d'une branche, nous pouvons la supprimer.
git branch -d test
