1GH-PR-CHECKOUT(1) GitHub CLI manual GH-PR-CHECKOUT(1)
2
3
4
6 gh-pr-checkout - Check out a pull request in git
7
8
9
11 gh pr checkout {<number> | <url> | <branch>} [flags]
12
13
14
16 -b, --branch <string>
17 Local branch name to use (default: the name of the head branch)
18
19
20 --detach
21 Checkout PR with a detached HEAD
22
23
24 -f, --force
25 Reset the existing local branch to the latest state of the pull
26 request
27
28
29 --recurse-submodules
30 Update all submodules after checkout
31
32
33
35 -R, --repo <[HOST/]OWNER/REPO>
36 Select another repository using the [HOST/]OWNER/REPO format
37
38
39
41 gh-pr(1)
42
43
44
45 Jan 2023 GH-PR-CHECKOUT(1)