Kamran Mushtaq
Back to Git
Git

Fork

Added: July 25, 2026

Definition

Creates your own copy of someone else's repository under your GitHub account. It comes before cloning and development.

The Problem That Led to It

Open-source repositories cannot allow everyone to push changes directly. Developers needed a safe way to experiment without affecting the original project.

What Problem It Solves

Lets anyone work independently while keeping the original repository protected.

What Happens If Not Used

Only repository owners or collaborators could contribute.

Easy Wording

"Make your own copy before making changes."

Layman Example

A library doesn't let you write in its book, so you photocopy it, make your notes, then show your improved version to the author.

Technical Example

Before

Original Repository

You cannot push.

After

Original Repo │ ▼ Your Fork │ Clone │ Make Changes │ Pull Request │ Original Repo

Limitation

Your fork can become outdated as the original repository changes.

Solution

Sync Fork updates your fork with the latest changes from the original repository before you continue working.