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/REPO format 🌈
  • -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