Skip to content

Reviewing pull requests

Brian Dussault edited this page Oct 31, 2023 · 3 revisions

Checking out the PR locally using the GitHub CLI

Checkout the PR locally:

gh pr checkout xxxx

Update a local copy of the PR:

gh pr checkout xxxx --force

Checking out the PR locally using Git

Checkout the PR locally:

git fetch git@github.com:stacklok/minder.git pull/xxxx/head:pull/xxxx

git checkout pull/xxxx

Update a local copy of the PR:

git checkout pull/xxxx

git pull git@github.com:stacklok/minder.git pull/xxxx/head

Where xxxx is the number of the PR.