hub-browse - Man Page
Open a GitHub repository in a web browser.
Examples (TL;DR)
- Open the homepage of the current repository in the default web browser:
hub browse
- Open the homepage of a specific repository in the default web browser:
hub browse owner/repository
- Open the subpage of a specific repository in the default web browser, subpage can be "wiki", "commits", "issues", or other (default: "tree"):
hub browse owner/repository subpage
Synopsis
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
See Also
Referenced By
18 Jul 2024 hub version 2.14.2 hub manual