Git comment supprimer une branche en local et à distance?

By Nasser

1 min read

Hello! Aujourd’hui je vais vous montrer comment supprimer un branche en local et à distance sur Git

Pour le faire, il suffit de tapez les commandes suivantes

Pour supprimer la branche distante

[git push -d <remote_name> <branch_name> ]{style="font-family: "courier new", courier, monospace;"}

[Exemple]{.underline}

[git push -d origin ma-branche]{style="font-family: "courier new", courier, monospace;"}

Pour supprimer la branche locale

[git branch -d ma-branche]{style="font-family: "courier new", courier, monospace;"}

Si vous voulez forcer la suppression de la branche

[git branch -D ma-branche]{style="font-family: "courier new", courier, monospace;"}

</p>