GH-BROWSE(1) GitHub CLI manual GH-BROWSE(1)

# [NAME](#NAME)

gh-browse - Open repositories, issues, pull requests, and more in the browser

# [SYNOPSIS](#SYNOPSIS)

**gh browse \[&lt;number&gt; | &lt;path&gt; | &lt;commit-sha&gt;] \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Transition from the terminal to the web browser to view and interact with:

- Issues
- Pull requests
- Repository content
- Repository home page
- Repository settings

# [OPTIONS](#OPTIONS)

[**-a**, **--actions**](#a)

Open repository actions

[**--blame**](#blame)

Open blame view for a file

[**-b**, **--branch** **&lt;string&gt;**](#b)

Select another branch by passing in the branch name

[**-c**, **--commit** **&lt;string&gt;**](#c)

Select another commit by passing in the commit SHA, default is the last commit

[**-n**, **--no-browser**](#n)

Print destination URL instead of opening the browser

[**-p**, **--projects**](#p)

Open repository projects

[**-r**, **--releases**](#r)

Open repository releases

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

Select another repository using the \[HOST/]OWNER/REPO format

[**-s**, **--settings**](#s)

Open repository settings

[**-w**, **--wiki**](#w)

Open repository wiki

# [EXIT CODES](#EXIT_CODES)

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.

# [EXAMPLE](#EXAMPLE)

```
# 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
```

# [SEE ALSO](#SEE_ALSO)

[**gh(1)**](/man/os/gh/gh.1)

Oct 2026

---

Document: gh-browse(1) from gh 2.103.0-r0 (Chainguard OS)
Source: https://github.com/cli/cli
