Files
cheatsheet-tldr/tldr/hub-fork

22 lines
487 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# hub fork
> Fork a 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}}`