File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 11# gh repo create
22
33> Create a new GitHub repository.
4+ > Note: ` --public ` , ` --private ` , or ` --internal ` is required when not running interactively.
45> More information: < https://cli.github.com/manual/gh_repo_create > .
56
67- Create a new repository interactively:
78
89` gh repo {{[new|create]}} `
910
10- - Create a new repository with a specified name and description:
11-
12- ` gh repo {{[new|create]}} {{repo_name}} {{[-d|--description]}} "{{repo_description}}" `
13-
1411- Create a private repository from the current directory:
1512
1613` gh repo {{[new|create]}} {{[-s|--source]}} . --private `
1714
18- - Clone the new repository locally after creation:
15+ - Create a public repository from the current directory:
16+
17+ ` gh repo {{[new|create]}} {{[-s|--source]}} . --public `
1918
20- ` gh repo {{[new|create]}} {{repo_name}} {{[-c|--clone]}} `
19+ - Create a public repository with a specified name and description:
2120
22- - Push the current directory to a new GitHub repository:
21+ ` gh repo {{[new|create]}} {{repo_name}} {{[-d|--description]}} "{{repo_description}}" --public `
2322
24- ` gh repo {{[new|create]}} {{[-s|--source]}} . --public `
23+ - Clone the new repository locally after creation:
24+
25+ ` gh repo {{[new|create]}} {{repo_name}} {{[-c|--clone]}} {{--public|--private|--internal}} `
Original file line number Diff line number Diff line change 33> Work with GitHub repositories.
44> More information: < https://cli.github.com/manual/gh_repo > .
55
6- - Create a new repository (if the repository name is not set, the default name will be the name of the current directory) :
6+ - Create a new repository interactively :
77
8- ` gh repo {{[new|create]}} {{name}} `
8+ ` gh repo {{[new|create]}} `
99
1010- Clone a repository:
1111
You can’t perform that action at this time.
0 commit comments