LinuxCommandLibrary

hub-fork

creates a fork of a GitHub repository

TLDR

Fork current repository

$ hub fork
copy
Fork without remote
$ hub fork --no-remote
copy
Fork specific repository
$ hub fork [user/repo]
copy
Fork to organization
$ hub fork --org [myorg]
copy

SYNOPSIS

hub fork [options] [repository]

DESCRIPTION

hub fork creates a fork of a GitHub repository. It adds a remote pointing to your fork automatically.
The command forks to your account or specified organization. It sets up the remote for pushing to your fork.

PARAMETERS

REPOSITORY

Repository to fork.
--no-remote
Don't add remote.
--org ORG
Fork to organization.
--remote-name NAME
Remote name (default: origin).
--help
Display help information.

CAVEATS

Part of hub tool. Requires GitHub authentication. Creates copy under your account.

HISTORY

hub fork is part of hub, GitHub's original CLI for repository operations.

SEE ALSO

hub(1), gh(1), hub-clone(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community