git town main-branch [branch]

The main-branch command displays or sets the main development branch for a repository.

Variations

Without an argument, displays the main branch. With an argument, sets the main branch to the given value.