LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-fork

Fork GitHub repository and clone locally

TLDR

Fork and clone repository by URL
$ git fork [https://github.com/owner/repo]
copy
Fork and clone repository by slug
$ git fork [owner/repo]
copy
Fork the current repo (run inside an existing clone)
$ 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. Given a URL or `owner/repo` slug, it forks the repo via the GitHub API, clones the new fork into the current directory, and adds the original as a remote named upstream. Run with no argument inside an existing clone of a GitHub repo, it forks that repo, renames the existing origin remote to upstream, and adds the fork as the new origin. Remotes use SSH if configured, otherwise HTTPS.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.

CONFIGURATION

git-extras.github-personal-access-token

Personal access token used to call the GitHub API; set globally with git config --global --add git-extras.github-personal-access-token \<token\>, or per-repo to override for a different account.

INSTALL

nix profile install nixpkgs#git-fork
copy

CAVEATS

Part of git-extras package. Requires a GitHub personal access token with the appropriate OAuth scopes. GitHub-specific functionality only.

HISTORY

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

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid