FahamLah

Commands

gh pr checkout

gh pr checkout <number>

Risk: Safe

What it does

Brings a pull request's branch to your computer and switches to it.

When to use it

To try a teammate's change before you review it.

Example

$ gh pr checkout 6

Switch to the branch of pull request 6.