Skip to content
BENIBIX Learn

Git Fork

Development🔀 Version ControlCollaboration

Also known as Fork, Forking, Fork a Repository

Your own copy of someone else's repo, on the site. You are free to change it.

Think of it like

Think of it like copying a friend's recipe into your own book. You can change it, and their book stays the same.

Example

Jack wants to fix a typo in a big open source project. He forks it, fixes the typo in his copy and sends a pull request.

Why it matters

Forks let anyone help with open source without needing to be let in first.

Definition

A fork is a copy of someone else's repo, made on a site like GitHub. It lives under your account, so you can push to it freely. This is how people help with projects they cannot write to directly. You make changes in your fork, then open a pull request to offer them back. The owner then decides whether to take them.

Common mistake

Mixing up fork and clone. A fork is a copy on the website; a clone is a copy on your computer.

Key takeaways

  1. 1
    Your copy online. It lives under your account.
  2. 2
    Free to push. No permission from the owner needed.
  3. 3
    Offer it back. A pull request sends changes home.

Compare

Learn it properly