Git Learning

Published: (January 4, 2026 at 11:45 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

What is Git

Git was created by Linus Torvalds in 2005.

Version Control Systems

Types of Version Control Systems

1. Local VCS

  • Example: (none provided)
  • Limitations:
    • No collaboration
    • Risk of data loss

2. Centralized VCS

  • Example: (none provided)
  • How it works: (description not provided)

3. Distributed VCS

  • Examples:
    • Git
  • Advantages:
    • Each developer has complete history
    • Can work offline
    • Changes are pushed later to platforms like GitHub or GitLab

How Git Works

Workflow:
Working Directory → Staging Area → Local Repository → Remote Repository

  • git add – moves changes to the staging area
  • git commit – saves changes locally
  • git push – uploads changes to the remote repository

Components

  • Working Directory
  • Staging Area
  • Repository – storage location where Git tracks all versions of a project’s files and maintains its full history.
  • Local repository
  • Remote repository

What is GitLab

Connecting Git to GitLab

  1. Create a repository on GitLab.
  2. Connect your local repo:
https://gitlab.com/username/portfolio.git
  1. Your local changes are now visible on GitLab.
Back to Blog

Related posts

Read more »

Git for Beginners

What is Git? Git is a tool that helps you save, track, and manage changes in your code. In simple words: Git remembers every version of your project so you can...

Getting started with gitlab

What is Git text Git is a distributed version control system used to track changes in source code during software development. It allows multiple developers to...