GH-BROWSE(1)
π GH-BROWSE β the gh manual, but make it cute
okay bestie, welcome to gh-browse(1) β the GitHub CLI manual page that takes you from terminal gremlin mode to actual browser main character. Let's go π«Ά
β¨ NAME β¨
gh-browse β open repositories, issues, pull requests, and more in the browser π
β¨ SYNOPSIS β¨
gh browse [<number> | <path> | <commit-sha>] [flags]
β¨ DESCRIPTION β¨
so the whole vibe of this command is: you're sitting in your terminal, living your best life, and then β plot twist β you want to actually look at stuff on the web. gh browse is your little doorway from the terminal into the web browser so you can view and interact with:
- Issues
- Pull requests
- Repository content
- Repository home page
- Repository settings
transition era fr. terminal β‘οΈ browser. slay π
β¨ OPTIONS β¨
-a,--actionsβ opens the repository actions page πββοΈ--blameβ opens the blame view for a file (yes, the "who wrote this" view, iconic)-b,--branch<string>β picks a different branch, just pass the branch name in π-c,--commit<string>β picks a different commit, pass the commit SHA in; default is the last commit β¨-n,--no-browserβ prints the destination URL instead of opening the browser (for when you're being mysterious about it) π-p,--projectsβ opens repository projects ποΈ-r,--releasesβ opens repository releases π-R,--repo<[HOST/]OWNER/REPO>β selects another repository using the[HOST/]OWNER/REPOformat π-s,--settingsβ opens repository settings βοΈ-w,--wikiβ opens repository wiki π
β¨ EXIT CODES β¨
the receipts, bestie β here's what the numbers mean:
0: successful execution π1: error π2: command canceled π4: authentication required π
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. iykyk π§
β¨ EXAMPLE β¨
okay this is the part where it gets real good, the examples ate:
# Open the home page of the current repository
$ gh browse
# Open the script directory of the current repository
$ gh browse script/
# Open issue or pull request 217
$ gh browse 217
# Open commit page
$ gh browse 77507cd94ccafcf568f8560cfecde965fcfa63
# Open repository settings
$ gh browse --settings
# Open main.go at line 312
$ gh browse main.go:312
# Open blame view for main.go at line 312
$ gh browse main.go:312 --blame
# Open main.go with the repository at head of bug-fix branch
$ gh browse main.go --branch bug-fix
# Open main.go with the repository at commit 775007cd
$ gh browse main.go --commit=77507cd94ccafcf568f8560cfecde965fcfa63
like. she does it all. no cap. π₯
β¨ SEE ALSO β¨
gh(1)β the mothership, go say hi π
and that's the page, bestie!! π¦ this lil masterpiece is from GitHub CLI v2.102.0, dated Oct 2026 β remember us when you're famous πΈ mwah π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms