GitHub CLI Cheat Sheet/Open current repo in browser

Open the current repository in the browser.

Section: Getting Started

Open current repo in browser

bash
bash
gh browse
Explanation

Open the current repository in the browser.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Getting Started
Open current branch compare view
Open a repo page scoped to a specific branch.
OpenIn sheetbashsame section
Open repo in browser
Open the selected repository in the web UI.
OpenIn sheetbashsame section
Show gh version
Display installed GitHub CLI version and build info.
OpenIn sheetbashsame section
Open help for gh
Show top-level help and available command groups.
OpenIn sheetbashsame section
Show help for a subcommand
Open detailed help for a specific subcommand.
OpenIn sheetbashsame section
Authenticate interactively
Authenticate with GitHub using the default browser-based flow.
OpenIn sheetbashsame section