Curriculum
Course: Git
Login
Text lesson

GitHub Fork

Add to Someone Else’s Repository

At its core, Git is designed for collaboration, but you can’t directly add code to someone else’s repository without the necessary permissions.

In the following three chapters, we’ll guide you through the process of copying a repository, making your own changes, and proposing those changes to be integrated into the original repository.

By the end of these chapters, you’ll have the chance to contribute a message to our public GitHub page: https://code7school-test.github.io/.

Fork a Repository

A fork is a copy of a repository that allows you to work on someone else’s project or create your own version based on their work.

Forking isn’t a Git command but a feature provided by GitHub and other repository hosting services. To get started, log in to GitHub and fork our repository: https://github.com/code7school-test/code7school-test.github.io.

Now, we have our own copy of the code7school-test.github.io repository.

Next, let’s see how to create a local copy of this repository to work with.