DOKK / manpages / debian 10 / hub / hub-fork.1.en
HUB-FORK(1) Hub Manual HUB-FORK(1)

hub-fork - Fork the current project on GitHub and add a git remote for it.

hub fork [--no-remote] [--remote-name=REMOTE] [--org=ORGANIZATION]

Skip adding a git remote for the fork.
Set the name for the new git remote.
Fork the repository within this organization.

$ 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

hub-clone(1), hub(1)

March 2019 GITHUB