gh browse
Open a repository, an issue or a file on GitHub in the browser
What it does
gh browse opens the home page of the current repository. With a number it opens an issue or a pull request, with a path a file, and with :number after the path the right line: gh browse src/app.js:12.
--settings goes to the repository settings, --releases to the releases. -n opens nothing and prints the address instead: handy for copying a link to a colleague.
Syntax
gh browse
gh browse <number>
gh browse <file>:<line>
gh browse -nExamples
Open the current repository on GitHub in the browser
gh browsebrowse— open in the browser; with a number, an issue or a PR
Related commands
- gh pr view — Read a pull request: description, status and reviews
- gh issue view — Read an issue
- gh repo clone — Clone a GitHub repository by its short name