How to fork a project and what is forking?

When working with a team on a project, you might not want everyone to push to the main source of the project. You'd rather have everyone create their own copy of the project, commit to their project, and ask whether their code can be merged to the main source of the project.

All this can be achieved by forking a project. You can fork a project in GitLab by going to the project and clicking on the Fork button. This will create a copy of the project in your own namespace. You're allowed to do whatever you want with this copy as it's is your own. When you want to push code you created back to the main source, you can create a merge request from your fork back to the main source.

Let's put this in some simple ...

Get GitLab Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.