Skip to main content
  1. Learn
  2. Software Development
  3. Guides
  4. Git tutorial
  5. Bases de Git
  6. Gestion de l'historique de Git
  7. Copie de commits vers d'autres branches
GuidesSoftware DevelopmentBacklog
Git

Project and code management together.

Copie de commits vers d'autres branches

Vous pouvez copier un commit existant d'une autre branche vers la branche active du référentiel au moyen de la commande git cherry-pick.

Le cherry-picking vous permet:

  • De déplacer un commit d'une branche erronée vers la branche correcte,
  • D'ajouter un commit à la branche active à partir d'un commit existant sur une autre branche.
Diagram using the cherry-pick command.
La commande git cherry-pick permet de modifier la branche d'un commit.

Smarter teamwork, delivered

Get practical advice, workflow guides, and proven strategies to help your team adopt tools fast and stay organized.