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 livesUsed for
ForkOn GitHub, under your accountYour own copy of someone else's project
CloneOn your computerWorking locally on any repository
BranchInside one repositoryA separate line of work within the same project

The Open-Source Contribution Flow

  1. Fork the original repository (often called upstream).
  2. Clone your fork and create a branch.
  3. Make and commit your change, then push it to your fork.
  4. Open a pull request from your fork to the original.
  5. 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

Previous term: Feedback  |  Next term: Framework

Related guides

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
Dhaivat Ajwaliya

About the author

Dhaivat Ajwaliya

Dhaivat has 16+ years of experience in the IT industry, working on AI and cloud technologies, project delivery, and engineering leadership. He has interviewed and mentored many interns, wrote The Lost Intern, and runs the non-commercial Career Impact Initiative, mentoring students for free.