Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

git town branch

git town branch [-v | --verbose]

The branch command is Git Town’s equivalent of the git branch command. It displays the local branch hierarchy, and the types of all branches except for main and feature branches.

Options

-d
--display-types

This flag allows customizing whether Git Town also displays the branch type in addition to the branch name when showing a list of branches. More info here.

-o
--order

The --order flag allows customizing the order in which branches get displayed. More info here

-v
--verbose

The --verbose aka -v flag prints all Git commands run under the hood to determine the repository state.

See also

  • switch displays the branch hierarchy and lets you switch to a new branch in it
  • walk executes a shell command or opens a shell in each of your local branches