hub-fork - Man Page
Fork the current repository on GitHub and add a git remote for it.
Examples (TL;DR)
- 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
Synopsis
hub fork
[--no-remote] [--remote-name REMOTE] [--org ORGANIZATION]
Options
- --no-remote
Skip adding a git remote for the fork.
- --remote-name REMOTE
Set the name for the new git remote.
- --org ORGANIZATION
Fork the repository within this organization.
Examples
$ hub fork [ repo forked on GitHub ] > git remote add -f USER git@github.com:USER/REPO.git $ hub fork --org=ORGANIZATION [ repo forked on GitHub into the ORGANIZATION organization] > git remote add -f ORGANIZATION git@github.com:ORGANIZATION/REPO.git
See Also
Referenced By
hub(1), hub-clone(1), hub-remote(1).
18 Jul 2024 hub version 2.14.2 hub manual