LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gh-browse

open repository pages in web browser

TLDR

Open repository in browser
$ gh browse
copy
Open specific file
$ gh browse [path/to/file]
copy
Open at specific line
$ gh browse [path/to/file]:[line]
copy
Open a specific issue or PR by number
$ gh browse [123]
copy
Open releases page
$ gh browse --releases
copy
Open specific branch
$ gh browse --branch [branch_name]
copy
Open a specific repository
$ gh browse --repo [owner/repo]
copy
Print URL without opening
$ gh browse -n
copy

SYNOPSIS

gh browse [options] [file[:line]]

DESCRIPTION

gh browse opens the GitHub repository in a web browser. It intelligently navigates to specific repository pages, files, and even line numbers based on the arguments provided.When run in a git repository, it automatically detects the GitHub remote and opens the corresponding page. The command supports opening various repository sections including issues, pull requests, wiki, settings, and releases. It can also navigate to specific files and line numbers, making it easy to share code references with others.The --no-browser flag allows printing URLs without opening them, useful for scripting and integration with other tools.

PARAMETERS

-a, --actions

Open repository Actions page.
-b, --branch branch
Select branch by name.
-c, --commit sha
Select commit by SHA (defaults to the last commit).
-n, --no-browser
Print URL instead of opening the browser.
-p, --projects
Open repository projects.
-r, --releases
Open repository releases.
-R, --repo [HOST/]OWNER/REPO
Select another repository.
-s, --settings
Open repository settings.
-w, --wiki
Open repository wiki.
--blame
Open the blame view for a file.

INSTALL

sudo apt install gh
copy
sudo dnf install gh
copy
sudo pacman -S github-cli
copy
sudo apk add github-cli
copy
sudo zypper install gh
copy
brew install gh
copy
nix profile install nixpkgs#gh
copy

SEE ALSO

gh(1), gh-repo(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid