Fork
What is Fork?
Fork: A copy of a repository that is independent of the original. You can make changes in your fork without affecting the upstream project. A fork is your own copy of someone else's repository, usually on GitHub or GitLab. You can change it freely without affecting the original, which is called the upstream.
Frequently asked questions about Fork
How is Fork used in practice?
Forks are how many open-source contributions work. You fork a project, make your change in your copy, and open a pull request asking the maintainers to merge it into the original.
What should you keep in mind with Fork?
Forks are also used to keep a patched version of a library a project depends on. That can be a quick fix, but it comes with a cost. Your fork does not receive updates or security fixes automatically, and it drifts further from upstream over time. Try to get your change accepted upstream, and keep a note of why the fork exists, so it does not stay in place for years.
At a glance
| Category | Core glossary |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |