GH-PR-DIFF(1) GitHub CLI manual GH-PR-DIFF(1)

gh-pr-diff - View changes in a pull request

gh pr diff [<number> | <url> | <branch>] [flags]

View changes in a pull request.

Without an argument, the pull request that belongs to the current branch is selected.

With --web flag, open the pull request diff in a web browser instead.

Use color in diff output: {always|never|auto}
Display only names of changed files
Display diff in patch format
Open the pull request diff in the browser

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

gh-pr(1)

Apr 2024