← 返回命令列表

Linux command

git-fork 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Fork and clone repository

git fork [https://github.com/owner/repo]

Fork current repo's upstream

git fork

说明

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.

参数

--help
Display help information.

FAQ

What is the git-fork command used for?

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.

How do I run a basic git-fork example?

Run `git fork [https://github.com/owner/repo]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --help do in git-fork?

Display help information.