1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 06:06:00 +02:00
tldr/pages.it/common/git-cherry-pick.md
Francesco Franchina 28c4d26221
pages.it/*: update path placeholders and "directory" translations (#9031)
- Replace "al" -> "del", "alla" -> "della", etc. in command paths
- Replace all instances of "cartella" with "directory"
- Update contributing-guides/translation-templates/common-arguments.md to
  reflect these changes

Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Marco Bonelli <marco@mebeim.net>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2022-10-20 15:26:58 +02:00

729 B

git cherry-pick

Applica al ramo corrente le modifiche introdotte da commit esistenti. Per applicare le modifiche ad un altro ramo, usa prima git checkout per passare al ramo desiderato. Maggiori informazioni: https://git-scm.com/docs/git-cherry-pick.

  • Applica un commit al ramo corrente:

git cherry-pick {{commit}}

  • Applica una sequenza di commit al ramo corrente (vedi anche git rebase --onto):

git cherry-pick {{commit_iniziale}}~..{{commit_finale}}

  • Applica un insieme di commit non sequenziali al ramo corrente:

git cherry-pick {{commit_1}} {{commit_2}}

  • Aggiungi le modifiche introdotte da un commit alla directory di lavoro, ma senza creare un nuovo commit:

git cherry-pick -n {{commit}}