1
0
mirror of synced 2025-12-25 02:17:36 -05:00
Files
2025-09-04 16:13:28 +00:00

2.1 KiB

title, intro, redirect_from, versions, topics
title intro redirect_from versions topics
About forks A fork is a new repository that shares code and visibility settings with the original “upstream” repository.
/github/collaborating-with-issues-and-pull-requests/working-with-forks/about-forks
/articles/about-forks
/github/collaborating-with-issues-and-pull-requests/about-forks
/github/collaborating-with-pull-requests/working-with-forks/about-forks
fpt ghes ghec
* * *
Pull requests

About forks

Forks are like independent copies of repositories. Unlike branches, forks give you more freedom to experiment without affecting the original project. Unlike cloned or duplicated repositories, changes from forks can be merged back into the upstream repository via pull requests, similar to a branch.

When you view a forked repository on {% data variables.product.github %}, the upstream repository is indicated below the name of the fork.

Screenshot of a repository's page on GitHub. Below the name of the repository, "mona/docs", the text "forked from github/docs" is outlined in orange.

What makes forks distinct from branches

Each fork is a complete repository with its own:

  • Branches
  • Members and discussions
  • Issues and pull requests
  • Actions and projects
  • Tags, labels, and wikis

When to use a fork

There are times when a fork may be a better fit for your task than a branch would be. A fork might be better:

  • To experiment safely without affecting the original project
  • To create separate space for discussions unrelated to a project's main goals
  • When you might want to make your work an independent repository later

Which repositories can be forked?

{% data reusables.repositories.you-can-fork %}

Next steps

For instructions for forking a repository, see AUTOTITLE.

For more information about when you can create forks, and the permission and visibility settings of forks, see AUTOTITLE.