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 steps:
- Go to the project you want to fork.
- In the top-right corner, you see a link called Fork. Click on it.
- GitLab will show you a notice that the project was successfully cloned.
You can now clone this project to your computer...