GitLab is a free and open source, web-based repository manager that lets teams collaborate on code, duplicate code to safely create and edit new projects, then merge finished code into existing projects. It provides centralized, cloud-based locations where teams can store, share, publish,test, and collaborate on web development projects. Its permissions, branch protection, and authentication features are what really make it stand out. Teams can secure projects on a more granular level, and projects are kept even safer while they’re being worked on.
After creating your account in a GitLab you can see the dashboard. In your dashboard, click the green New project button or use the plus icon in the upper right corner of the navigation bar.This opens a new project page.
Provide the following information to create new project:
To add the changes in the project, git add is used.
To commit the changes in the project, git commit is used.
Uploading of project to main repository is done with git push.
A fork is a copy of an original repository that you can put in another namespace where you can experiment and apply changes that you can later decide if publishing or not, without affecting your original project.
Branching offers a way to work on a new feature without affecting the main codebase.Each time, that you want to commit a bug or a feature, you need to create a branch for it, which will be a copy of your master branch.
When you do a pull request on a branch, you can continue to work on another branch and make another pull request on this other branch.