GitHub CLI Repos and Pull Requests/Update branch from base

Update a PR branch with the latest base branch changes.

Section: Reviews and Merge

Update branch from base

bash
bash
gh pr update-branch 123 --rebase
Explanation

Update a PR branch with the latest base branch changes.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Reviews and Merge
Approve a PR
Approve a pull request.
OpenIn sheetbashsame section
Comment on a PR
Leave a review comment.
OpenIn sheetbashsame section
Request changes on a PR
Request changes during review.
OpenIn sheetbashsame section
Merge a PR
Merge a pull request using a merge commit.
OpenIn sheetbashsame section
Squash merge a PR
Squash merge and delete the branch.
OpenIn sheetbashsame section
Rebase merge a PR
Merge a pull request using rebase.
OpenIn sheetbashsame section