GH-PR-UPDATE-BRANCH(1) GitHub CLI manual GH-PR-UPDATE-BRANCH(1) (NAME) gh-pr-update-branch - (SYNOPSIS) gh pr update-branch [ | | ] [flags] (DESCRIPTION) (base branch) . . (merge commit) ( ). --rebase . (OPTIONS) --rebase (OPTIONS INHERITED FROM PARENT COMMANDS) -R, --repo <[HOST/]OWNER/REPO> [HOST/]OWNER/REPO (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) $ gh pr update-branch 23 $ gh pr update-branch 23 --rebase $ gh pr update-branch 23 --repo owner/repo (SEE ALSO) gh-pr(1) Sep 2026 GH-PR-UPDATE-BRANCH(1)