git branch

Comando principal do Git para trabalhar com branches. Mais informações: https://git-scm.com/docs/git-branch.

git branch {{[-a|--all]}}

git branch {{[-a|--all]}} --contains {{hash_do_commit}}

git branch --show-current

git branch {{nome_da_branch}}

git branch {{nome_da_branch}} {{hash_do_commit}}

git branch {{[-m|--move]}} {{antigo_nome_da_branch}} {{novo_nome_da_branch}}

git branch {{[-d|--delete]}} {{nome_da_branch}}

git push {{nome_remoto}} {{[-d|--delete]}} {{nome_da_branch_remota}}