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.
- Surf to the repository you would like to fork
- 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.