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

NAME

6       gh-repo-create - Create a new repository
7
8
9

SYNOPSIS

11       gh repo create [<name>] [flags]
12
13
14

DESCRIPTION

16       Create a new GitHub repository.
17
18
19       To  create a repository interactively, use gh repo create with no argu‐
20       ments.
21
22
23       To create a remote repository non-interactively, supply the  repository
24       name  and  one  of --public, --private, or --internal.  Pass --clone to
25       clone the new repository locally.
26
27
28       To create a remote repository from an existing local repository,  spec‐
29       ify the source directory with --source.  By default, the remote reposi‐
30       tory name will be the name of the source  directory.   Pass  --push  to
31       push any local commits to the new repository.
32
33
34

OPTIONS

36       -c, --clone
37              Clone the new repository to the current directory
38
39
40       -d, --description <string>
41              Description of the repository
42
43
44       --disable-issues
45              Disable issues in the new repository
46
47
48       --disable-wiki
49              Disable wiki in the new repository
50
51
52       -g, --gitignore <string>
53              Specify a gitignore template for the repository
54
55
56       -h, --homepage <URL>
57              Repository home page URL
58
59
60       --include-all-branches
61              Include all branches from template repository
62
63
64       --internal
65              Make the new repository internal
66
67
68       -l, --license <string>
69              Specify an Open Source License for the repository
70
71
72       --private
73              Make the new repository private
74
75
76       --public
77              Make the new repository public
78
79
80       --push Push local commits to the new repository
81
82
83       -r, --remote <string>
84              Specify remote name for the new repository
85
86
87       -s, --source <string>
88              Specify path to local repository to use as source
89
90
91       -t, --team <name>
92              The name of the organization team to be granted access
93
94
95       -p, --template <repository>
96              Make the new repository based on a template repository
97
98
99

EXAMPLE

101              # create a repository interactively
102              gh repo create
103
104              # create a new remote repository and clone it locally
105              gh repo create my-project --public --clone
106
107              # create a remote repository from the current directory
108              gh repo create my-project --private --source=. --remote=upstream
109
110
111
112
113

SEE ALSO

115       gh-repo(1)
116
117
118
119                                   Jun 2022                  GH-REPO-CREATE(1)
Impressum