GitLab

A simple guide to setting up GitLab on your system

1. Installing Git on your system

You can install Git from here

gitlabss.PNG

downloading git is the first requirement because it enables us to access the gitbash terminal which is required later on for generating an SSH key.

2. Sign up to GitLab

You can sign up for GitLab here

glsignin.PNG

3. Generating an SSH key

Generating an SSH key is the most important step to start using GitLab as it allows us to clone repositories, create Pull requests and Merge files to the main branch of the project.

You can follow this Youtube video if you are trying to generate an SSH key on a windows system How to Generate SSH key for Windows

MacOs users can refer to this video How to Generate SSH key for MacOs

Remember to add this SSH key to your Profile to get started with GitLab

4. Creating a Project

projectgitlab.PNG

you can start with a new project from the homepage of gitlab

projectgitlab2.PNG

From here you can create an empty project and add the files to the Respository or you can import the project from GitHub if you have uploaded the repository there.

After setting up the project and its settings, you can start uploading files required for the project from here

fileuploadgitlab.PNG

If your repository is public you can add people to the project and work with them on various features and merge their pull requests to the repository for the changes they have implemented to take place

5. GitLab version control

What is Version control?

Version control enables teams to collaborate and streamline development to resolve conflicts and create a centralized location for code.

How does GitLab do version control?

If developers code concurrently and create incompatible changes, version control identifies the problem areas so that team members can quickly revert changes to a previous version, compare changes, or identify who committed the problem code through the revision history.

6. How to store and access Secrets

You can checkout this detailed article explaining how to access and store secrets in GitLab.

7. Other Features

Apart from these basic features GitLab has many other interesting features such as CI/CD, Partial Clone and a lot more. You can read about them on their official docs

8. Free vs Paid

Free vs Paid