LinuxCommandLibrary

git-fork

Fork GitHub repository and clone locally

TLDR

Fork and clone repository

$ git fork [https://github.com/owner/repo]
copy
Fork current repo's upstream
$ git fork
copy

SYNOPSIS

git fork [url]

DESCRIPTION

git fork forks a GitHub repository and clones it locally, automating the common workflow of forking a project for contribution. It uses the GitHub API to create the fork, then clones your fork and configures the original as upstream, setting up the standard contribution workflow.
Part of the git-extras suite, this command streamlines the fork-and-clone pattern that is fundamental to open-source collaboration on GitHub.

PARAMETERS

URL

Repository URL to fork.
--help
Display help information.

CAVEATS

Part of git-extras package. Requires GitHub authentication. GitHub-specific functionality.

HISTORY

git fork is part of git-extras, created to automate the common GitHub fork workflow for contributing to projects.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community