hub-fork - Man Page

Fork the current repository on GitHub and add a git remote for it.

Examples (TL;DR)


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



Skip adding a git remote for the fork.

--remote-name REMOTE

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

$ hub fork --org=ORGANIZATION
[ repo forked on GitHub into the ORGANIZATION organization]
> git remote add -f ORGANIZATION

See Also

hub-clone(1), hub(1)

Referenced By

hub(1), hub-clone(1), hub-remote(1).

11 Feb 2024 hub version 2.14.2 hub manual