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       If  the  repository is a fork, its parent repository will be set as the
32       default remote repository.
33
34
35

OPTIONS

37       -u, --upstream-remote-name <string>
38              Upstream remote name when cloning a fork
39
40
41

SEE ALSO

43       gh-repo(1)
44
45
46
47                                   Nov 2023                   GH-REPO-CLONE(1)
Impressum