gh-browse

Open a GitHub repository in the browser or print the URL.

TLDR

Open the homepage of the current repository in the default web browser

$ gh browse
copy

Open the homepage of a specific repository in the default web browser

$ gh browse [owner]/[repository]
copy

Open the settings page of the current repository in the default web browser

$ gh browse --settings
copy

Open the wiki of the current repository in the default web browser

$ gh browse --wiki
copy

Open a specific issue or pull request in the web browser

$ gh browse [issue_or_pull_request_number]
copy

Open a specific branch in the web browser

$ gh browse --branch [branch_name]
copy

Open a specific file or directory of the current repository in the web browser

$ gh browse [path_from_root_of_repository]
copy

Print the destination URL without open the web browser

$ gh browse --no-browser
copy

Copied to clipboard
Dodo Farming