hub-*: add page (#11228)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
WangLinSongss
2023-10-25 19:40:02 +11:00
committed by GitHub
parent 015e62b128
commit 4a15348827
9 changed files with 108 additions and 0 deletions

16
pages/common/hub-fork.md Normal file
View File

@@ -0,0 +1,16 @@
# hub fork
> Fork the given GitHub repo. Like `git fork` from `git-extras`.
> More information: <https://hub.github.com/hub-fork.1.html>.
- Fork a GitHub repository by its slug:
`hub fork {{tldr-pages/tldr}}`
- Fork a GitHub repository by its URL:
`hub fork {{https://github.com/tldr-pages/tldr}}`
- Fork current GitHub repository, set remote name to origin:
`hub fork --remote-name {{origin}}`