forked from APACGAMONDE/Gift-Card-Trade-in
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgh-repo-create.1
108 lines (77 loc) · 2.03 KB
/
gh-repo-create.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.nh
.TH "gh" "1" "Jun 2021" "" ""
.SH NAME
.PP
gh\-repo\-create \- Create a new repository
.SH SYNOPSIS
.PP
\fBgh repo create [] [flags]\fP
.SH DESCRIPTION
.PP
Create a new GitHub repository.
.PP
When the current directory is a local git repository, the new repository will be added
as the "origin" git remote. Otherwise, the command will prompt to clone the new
repository into a sub\-directory.
.PP
To create a repository non\-interactively, supply the following:
\- the name argument;
\- the \fB\fC\-\-confirm\fR flag;
\- one of \fB\fC\-\-public\fR, \fB\fC\-\-private\fR, or \fB\fC\-\-internal\fR\&.
.PP
To toggle off \fB\fC\-\-enable\-issues\fR or \fB\fC\-\-enable\-wiki\fR, which are enabled
by default, use the \fB\fC\-\-enable\-issues=false\fR syntax.
.SH OPTIONS
.PP
\fB\-y\fP, \fB\-\-confirm\fP[=false]
Skip the confirmation prompt
.PP
\fB\-d\fP, \fB\-\-description\fP=""
Description of the repository
.PP
\fB\-\-enable\-issues\fP[=true]
Enable issues in the new repository
.PP
\fB\-\-enable\-wiki\fP[=true]
Enable wiki in the new repository
.PP
\fB\-h\fP, \fB\-\-homepage\fP=""
Repository home page \fB\fCURL\fR
.PP
\fB\-\-internal\fP[=false]
Make the new repository internal
.PP
\fB\-\-private\fP[=false]
Make the new repository private
.PP
\fB\-\-public\fP[=false]
Make the new repository public
.PP
\fB\-t\fP, \fB\-\-team\fP=""
The \fB\fCname\fR of the organization team to be granted access
.PP
\fB\-p\fP, \fB\-\-template\fP=""
Make the new repository based on a template \fB\fCrepository\fR
.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-\-help\fP[=false]
Show help for command
.SH EXAMPLE
.PP
.RS
.nf
# create a repository under your account using the current directory name
$ git init my\-project
$ cd my\-project
$ gh repo create
# create a repository with a specific name
$ gh repo create my\-project
# create a repository in an organization
$ gh repo create cli/my\-project
# disable issues and wiki
$ gh repo create \-\-enable\-issues=false \-\-enable\-wiki=false
.fi
.RE
.SH SEE ALSO
.PP
\fBgh\-repo(1)\fP