mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 06:47:36 +00:00
30 lines
730 B
Plaintext
30 lines
730 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|