📚 Cheatsheet

Une collection organisée de snippets de code pour accélérer votre développement. Parcourez, recherchez et copiez en un clic.

Snippets 8

Retour
Changer de branche
Facile
git checkout nom-de-la-branche
Créer et changer de branche en une commande
Facile
git checkout -b nouvelle-branche
Créer une nouvelle branche
Facile
git branch nom-de-la-branche
Forcer la suppression d'une branche locale
Intermédiaire
git branch -D nom-de-la-branche
Fusionner une branche dans la branche actuelle
Intermédiaire
git merge branche-a-fusionner
Lister toutes les branches
Facile
git branch
Rebaser la branche actuelle sur main
Avancé
git rebase main
Supprimer une branche locale
Facile
git branch -d nom-de-la-branche