1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 15:05:59 +02:00

gh-repo: add page (#4897)

This commit is contained in:
Alex Brenon 2020-11-04 13:37:36 -05:00 committed by GitHub
parent c316c2627d
commit 5511382eed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
pages/common/gh-repo.md Normal file
View file

@ -0,0 +1,20 @@
# 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`