Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com> Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com>
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. |
|
|
|
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.
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.
