This lesson is still being designed and assembled (Pre-Alpha version)

Forks

Overview

Teaching: 0 min
Exercises: 0 min
Questions
  • What are forks?

Objectives
  • Understand how forks are created.

A fork of a repository is a new repository which shares code and history with the repository it was forked from - it is a server-side copy (clone) of the original repository. This is particularly useful when you want to work on an open source project where you don’t have write permissions to the repository.

Creating a fork and a local copy of the fork

In order to try out the commands in this lesson we need to set up a repository on GitHub:

Exercise 1: Create a fork

Follow the above instructions to create a fork of the intermediate-git-test-repo. Then create a local copy of it.

We’ll discuss forking further in the Remotes and Branching Models chapters.

Key Points

  • A fork is a server-side copy of a repository

  • A fork can be created on Github through the Fork button in the top right