Skip to content

Commit 96b9c57

Browse files
dmmqzsebastiaanspeckacuteenvy
authored
gh-{repo,repo-create}: fix examples (#19048)
Co-authored-by: Sebastiaan Speck <[email protected]> Co-authored-by: Lena Pastwa <[email protected]>
1 parent d48d698 commit 96b9c57

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

pages/common/gh-repo-create.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
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}}`

pages/common/gh-repo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
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

0 commit comments

Comments
 (0)