git town config main-branch [branch]

The main-branch configuration 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.