Open a repo page scoped to a specific branch.
Section: Getting Started
Open current branch compare view
bash
bash
gh browse --branch feature/my-branchExplanation
Open a repo page scoped to a specific branch.
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
Authenticate interactively
Authenticate with GitHub using the default browser-based flow.
Authenticate to GitHub Enterprise
Authenticate against a GitHub Enterprise Server host.