DEV Community

Guru prasanna
Guru prasanna

Posted on

GIT - GITLAB Introduction

What is a version control system?

Version control systems are a category of software tools that helps in recording changes made to files by keeping a track of modifications done in the code.

Types of Version Control Systems:

1.Local VCS – Stores versions on a local machine.

Image description

2.Centralized VCS (CVCS) – A single central server manages versions.

Image description

3.Distributed VCS (DVCS) – Every user has a full repository copy (e.g., Git).

Image description

What is Git?

Git is a popular version control system. It was created by Linus Torvalds in 2005, and has been maintained by Junio Hamano since then.

It is used for:

  • Tracking code changes
  • Tracking who made changes
  • Coding collaboration

History of Git:

  • Before 2005: Linux kernel development used BitKeeper, a proprietary VCS.
  • 2005: BitKeeper's free license was revoked, forcing Linux developers to find an alternative.
  • Git Creation: Linus Torvalds developed Git as an open-source, distributed VCS.

What does Git do?

  • Manage projects with Repositories
  • Clone a project to work on a local copy
  • Control and track changes with Staging and Committing
  • Branch and Merge to allow for work on different parts and versions of a project
  • Pull the latest version of the project to a local copy
  • Push local updates to the main project

What is GitLab?

GitLab is a open source ,web-based Git repository manager that provides a complete DevOps platform for version control, collaboration, CI/CD, and security. It helps teams manage source code, automate workflows, and deploy applications efficiently.

Image description

GitLab Workflow

  • Working Directory – The local files you're working on.
  • Staging Area (Index) – Prepares selected changes before committing. (git add)
  • Local Repository – Stores committed changes on your machine. (git commit)
  • Remote Repository (GitLab) – A shared repository for collaboration. (git push)

Installation of git in linux:

Run the command in terminal

sudo apt install git
Enter fullscreen mode Exit fullscreen mode

To verify whether installed and check the version of git:

git --version
Enter fullscreen mode Exit fullscreen mode

Git Lab profile : https://gitlab.com/-/user_settings/profile

Top comments (0)