If you are a developer used to working in a closed environment then you are used to the concept of cloning a git repository  and pull / push towards a central git entity. 

When contributing to open source projects, however, we assume you are not part of the core team and therefore are not allowed to push directly to the organisation’s repositories. You are required to clone the repository into your own personal space/organisation. This process is called forking

Forking a repository allows you to freely experiment with changes without affecting the original project.

Forking a repository in GitHub or GitLab is very easy, it just takes two steps.

  1. Surf to the repository you would like to fork 
  2. Press the fork button. 

That’s it. On both platforms you have now created a copy of the original repository and are ready to start adding your own code contributions. 

Below you can find a short explainer video for each platform.

Forking a repository on GitHub

Forking a repository on GitLab

Did this answer your question?