DOKK / manpages / debian 12 / gh / gh-pr-diff.1.en
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', open the pull request diff in a web browser instead.

--color <string>
Use color in diff output: {always|never|auto}

--name-only
Display only names of changed files

--patch
Display diff in patch format

-w, --web
Open the pull request diff in the browser

-R, --repo <[HOST/]OWNER/REPO>
Select another repository using the [HOST/]OWNER/REPO format

gh-pr(1)

Feb 2023