DEV Community

vishwa v
vishwa v

Posted on

Gitlab/hub

Introduction
In today’s fast-paced software world, developers need more than just a code repository. They need tools to plan, build, test, secure, and deploy—all without switching between multiple platforms. That’s where GitLab shines. It’s not just a Git repository manager; it’s a complete DevOps solution.

GitLab is an open-source platform that brings the entire software development lifecycle into one application. Whether you’re a solo developer or part of a large enterprise team, GitLab helps you collaborate, automate, and deliver software faster.

key Features
Version Control: Manage code with Git repositories.

CI/CD Pipelines: Automate testing, building, and deployment using .gitlab-ci.yml.

Auto DevOps: Pre-built CI/CD templates for quick setup.

Issue Tracking & Boards: Organize tasks, bugs, and features visually.

Merge Requests: Review code with approvals and discussions.

Security Tools: Built-in scanning for dependencies, containers, and vulnerabilities.

Wiki & Documentation: Share knowledge with your team.

Why Developers Love GitLab
All-in-one platform → No need for separate tools.

Scalable → Works for startups and enterprises.

Flexible → Supports Docker, Kubernetes, and cloud/on-prem deployments.

Collaboration-friendly → Merge requests, approvals, and boards keep teams aligned.

Security-first → Catch vulnerabilities early in the pipeline.

Installiation steps
Update your system – Run the update command so your server is fresh and ready.

Install required packages – Add the basic tools GitLab needs to work.

Add the GitLab repository – This tells your system where to download GitLab from.

Install GitLab – Use the install command to bring GitLab onto your server.

Reconfigure GitLab – Run the setup command so GitLab configures itself.

Open GitLab in browser – Finally, go to your server’s IP address in a browser and you’ll see GitLab running.

Steps to push a Project

Create a new project on GitLab – Log in, click New Project, and give it a name.

Copy the repository URL – You’ll see something like
https://gitlab.com/username/project.git.

Open your project folder – Go to your project directory in the terminal.

Initialize Git – Run:

git init

Enter fullscreen mode Exit fullscreen mode

Add files – Run:

git add .

Enter fullscreen mode Exit fullscreen mode

Commit changes – Run:

git commit -m "First commit"

Enter fullscreen mode Exit fullscreen mode

Add remote GitLab repo – Run:

git remote add origin https://gitlab.com/username/project.git

Enter fullscreen mode Exit fullscreen mode

Push to GitLab – Run:

git push -u origin master
Enter fullscreen mode Exit fullscreen mode

Top comments (0)