mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 09:42:07 +02:00

* git-send-email: add it translation * git-shortlog: add it translation * git-show-branch: add it translation * git-show-ref: add it translation * git-show: add it translation * git-svn: add it translation * git-sizer: add it translation * git-stage: add it translation * git-status: add it translation * git-stash: add it translation * git-submodule: add it translation * git-subtree: add it translation * git-switch: add it translation * git-tag: add it translation * git-update-ref: add it translation * git-worktree: add it translation * Use snake case for tokens
29 lines
747 B
Markdown
29 lines
747 B
Markdown
# 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 --create {{nome_ramo}}`
|
|
|
|
- Crea un nuovo ramo a partire da un commit esistente e passa a quel ramo:
|
|
|
|
`git switch --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 --merge {{nome_ramo}}`
|