1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 22:22:09 +02:00
tldr/pages.it/common/git-switch.md
Managor fe4c26ba2e
pages*/common/*: add option placeholders to translations part 2 (#15901)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-14 12:48:28 +05:30

773 B

git switch

Passa ad altri rami. Richiede versioni di Git successive alla 2.23. Vedi anche git checkout. Maggiori informazioni: https://git-scm.com/docs/git-switch.

  • Passa ad un altro ramo esistente:

git switch {{nome_ramo}}

  • Crea un nuovo ramo e passa a quel ramo:

git switch {{[-c|--create]}} {{nome_ramo}}

  • Crea un nuovo ramo a partire da un commit esistente e passa a quel ramo:

git switch {{[-c|--create]}} {{nome_ramo}} {{commit}}

  • Torna al ramo precedente:

git switch -

  • Passa ad un ramo ed aggiorna tutti i moduli secondari associati:

git switch --recurse-submodules {{nome_ramo}}

  • Passa ad un ramo e uniscilo automaticamente al ramo corrente, include le modifiche non committate:

git switch {{[-m|--merge]}} {{nome_ramo}}