mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
694 B
694 B
git branch
Il principale comando Git per lavorare con i rami. Maggiori informazioni: https://git-scm.com/docs/git-branch.
- Elenca i rami locali. Il ramo corrente è evidenziato da un
*
:
git branch
- Elenca tutti i rami (locali e remoti):
git branch {{[-a|--all]}}
- Crea un nuovo ramo a partire dal commit corrente:
git branch {{nome_ramo}}
- Crea un nuovo ramo a partire dal commit specificato:
git branch {{nome_ramo}} {{hash_commit}}
- Rinomina un ramo (non applicabile sul ramo corrente):
git branch {{[-m|--move]}} {{vecchio_nome}} {{nuovo_nome}}
- Cancella un ramo locale (non applicabile sul ramo corrente):
git branch {{[-d|--delete]}} {{nome_ramo}}