1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 17:22:10 +02:00
tldr/pages/common/gh-repo.md
2020-11-04 15:37:36 -03:00

20 lines
500 B
Markdown

# gh repo
> Work with GitHub repositories on the command line.
> More information: <https://cli.github.com/manual/gh_repo>.
- Create a new repository (if the repository name is not set, the default name will be the name of the current directory):
`gh repo create {{name}}`
- Clone a repository:
`gh repo clone {{owner}}/{{repository}}`
- Fork and clone a repository:
`gh repo fork {{owner}}/{{repository}} --clone`
- View a repository in the web browser:
`gh repo view {{repository}} --web`