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 repo

git town repo [<remote-name>] [-v | --verbose]

The repo command (“show me the repository”) opens the homepage of the current repository in your browser. Git Town can display repositories hosted on GitHub, GitLab, Gitea, Bitbucket, and Codeberg.

You can configure the browser which Git Town opens using the BROWSER environment variable.

Positional arguments

When called without arguments, the repo command shows the repository at the development remote.

When called with an argument, it shows the repository at the remote with the given name.

Options

-v
--verbose

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

Configuration

Git Town automatically identifies the forge type through the URL of the development remote. You can override the type of hosting server with the hosting-platform setting.

Set the hosting-origin-hostname setting to tell Git Town about the hostname when using ssh identities.