1GH-REPO-CLONE(1)               GitHub CLI manual              GH-REPO-CLONE(1)
2
3
4

NAME

6       gh-repo-clone - Clone a repository locally
7
8
9

SYNOPSIS

11       gh repo clone <repository> [<directory>] [-- <gitflags>...]
12
13
14

DESCRIPTION

16       Clone  a  GitHub repository locally. Pass additional git clone flags by
17       listing them after "--".
18
19
20       If the "OWNER/" portion of  the  "OWNER/REPO"  repository  argument  is
21       omitted, it defaults to the name of the authenticating user.
22
23
24       If  the repository is a fork, its parent repository will be added as an
25       additional git remote called "upstream". The remote name can be configā€
26       ured  using  --upstream-remote-name.  The --upstream-remote-name option
27       supports an "@owner" value which will name the remote after  the  owner
28       of the parent repository.
29
30
31

OPTIONS

33       -u, --upstream-remote-name <string>
34              Upstream remote name when cloning a fork
35
36
37

SEE ALSO

39       gh-repo(1)
40
41
42
43                                   Jan 2023                   GH-REPO-CLONE(1)
Impressum