This entry is very new in the tldr-pages project, hence translation data is currently unavailable for a while.


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

  • 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