1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 11:22:09 +02:00
tldr/pages/common/hub-fork.md
WangLinSongss 4a15348827
hub-*: add page (#11228)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-10-25 10:40:02 +02:00

16 lines
402 B
Markdown

# 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}}`