HeadlinesBriefing favicon HeadlinesBriefing.com

Understanding **Forking** on **GitHub**: A Beginner's Guide

DEV Community •
×

This article from DEV Community details the process of forking a repository on GitHub. It's part two of a Skillcrush 105 lesson, guiding students through connecting their computers to GitHub and working with existing repositories. The focus is on the concept of forking, explaining its purpose and how it enables developers to contribute to projects without directly altering the original code.

Forking, in the context of Git and GitHub, allows developers to create a personal copy of a repository. This is akin to making a copy of a document. The copied repository remains linked to the original, allowing developers to make changes and experiment without affecting the primary codebase. This is a fundamental workflow for collaboration and contributing to open-source projects.

The steps involve navigating to GitHub, finding a repository, and clicking the fork button. Users then choose whether to copy all branches or just the main branch before creating the fork. The forked repository then appears in the user's GitHub account. It's essential to remember that forking is done on GitHub's interface, not the command line.

Mastering forking is a core skill for any developer looking to collaborate on projects hosted on GitHub. Understanding this process allows developers to contribute code, experiment with changes, and participate in the open-source community. Future lessons will likely cover other essential actions like cloning and making modifications to repositories.