hub-browse(1)

hub-browse1

Open a github repository in a web browser.

Usage

hub browse [-uc] [{[USER/] REPOSITORY | --}] [SUBPAGE]

Options

-u, --url

Print the URL instead of opening it.

-c, --copy

Put the URL in clipboard instead of opening it.

[USER/]REPOSITORY

Defaults to repository in the current working directory.

SUBPAGE

One of "wiki", "commits", "issues", or other (default: "tree").

Examples

$ hub browse
> open https://github.com/REPO
$ hub browse -- issues
> open https://github.com/REPO/issues
$ hub browse jingweno/gh
> open https://github.com/jingweno/gh
$ hub browse gh wiki
> open https://github.com/USER/gh/wiki

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From hub 2.14.2-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.