gh-browse - Open the repository in the browser
gh browse [<number> | <path>] [flags]
Open the GitHub repository in the web browser.
-b, --branch <string>Select another branch by passing in the branch name
-c, --commitOpen the last commit
-n, --no-browserPrint destination URL instead of opening the browser
-p, --projectsOpen repository projects
-R, --repo <[HOST/]OWNER/REPO>Select another repository using the [HOST/]OWNER/REPO format
-s, --settingsOpen repository settings
-w, --wikiOpen repository wiki
$ gh browse #=> Open the home page of the current repository $ gh browse 217 #=> Open issue or pull request 217 $ gh browse 77507cd94ccafcf568f8560cfecde965fcfa63 #=> Open commit page $ gh browse --settings #=> Open repository settings $ gh browse main.go:312 #=> Open main.go at line 312 $ gh browse main.go --branch main #=> Open main.go in the main branch
gh(1)