Fork: Your own copy of someone else's repository on GitHub or a similar service, which you can change freely without affecting the original. Changes can be offered back to the original through a pull request.
Example
You want to fix a typo in an open-source library's documentation. You fork the project, clone your fork, make the fix on a branch, push it, and open a pull request to the original repository.
Fork vs Clone vs Branch
| Where it lives | Used for | |
|---|---|---|
| Fork | On GitHub, under your account | Your own copy of someone else's project |
| Clone | On your computer | Working locally on any repository |
| Branch | Inside one repository | A separate line of work within the same project |
The Open-Source Contribution Flow
- Fork the original repository (often called upstream).
- Clone your fork and create a branch.
- Make and commit your change, then push it to your fork.
- Open a pull request from your fork to the original.
- Respond to the maintainers' review comments.
Do Interns Need Forks at Work?
Usually not. Inside a company, you normally have access to the team repository and create branches there. Forks matter for open-source contributions, which are a good way to show real collaboration on your GitHub profile.
Related terms
- Clone: copies a repository to your computer.
- GitHub: where forks are created.
- Pull Request (PR): how fork changes are offered back.
- Repository: what a fork copies.
Previous term: Feedback | Next term: Framework
Related guides
- How to Get an IT Internship Without Experience
- Build a GitHub Portfolio That Gets You Internship Interviews
- LinkedIn Profile Tips for Students
Frequently asked questions
What is a fork in GitHub?
A fork is your own copy of someone else's repository on GitHub, which you can change without affecting the original.
What is the difference between fork and clone?
A fork is a copy on GitHub under your account. A clone is a copy on your computer.
How do I keep my fork up to date?
Add the original repository as a remote called upstream, fetch its changes, and merge them into your fork.
Do I need to fork to contribute to open source?
Usually yes, unless you have write access. Fork, make your change, and open a pull request.
Explore more internship terms
The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.
Browse all 199 terms