mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-02 03:35:23 +02:00
gh-repo-create: add page (#16938)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
This commit is contained in:
parent
4439199cf7
commit
ed56b7d33c
1 changed files with 24 additions and 0 deletions
24
pages/common/gh-repo-create.md
Normal file
24
pages/common/gh-repo-create.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# gh repo create
|
||||||
|
|
||||||
|
> Create a new GitHub repository.
|
||||||
|
> More information: <https://cli.github.com/manual/gh_repo_create>.
|
||||||
|
|
||||||
|
- Create a new repository interactively:
|
||||||
|
|
||||||
|
`gh repo create`
|
||||||
|
|
||||||
|
- Create a new repository with a specified name and description:
|
||||||
|
|
||||||
|
`gh repo create {{repo_name}} {{[-d|--description]}} "{{repo_description}}"`
|
||||||
|
|
||||||
|
- Create a private repository from the current directory:
|
||||||
|
|
||||||
|
`gh repo create {{[-s|--source]}} . --private`
|
||||||
|
|
||||||
|
- Clone the new repository locally after creation:
|
||||||
|
|
||||||
|
`gh repo create {{repo_name}} {{[-c|--clone]}}`
|
||||||
|
|
||||||
|
- Push the current directory to a new GitHub repository:
|
||||||
|
|
||||||
|
`gh repo create {{[-s|--source]}} . --public`
|
Loading…
Add table
Reference in a new issue