Skip to Content
DevopsGitIntroduction

Introduction

Version control systems help developers to manage changes in their code over time. They allow teams to collaborate efficiently, track modifications, and revert to previous versions when necessary. One of the most widely used version control systems today is Git.

It is important to understand the difference between Git, GitHub, and GitLab, because they are often confused.

Git

Git is the core version control system. It is a tool installed on your computer that allows you to:

  • Track changes in files

  • Create branches

  • Merge code

  • Manage project history locally

Git works even without an internet connection because everything is stored locally.

GitHub

GitHub is a cloud-based hosting platform for Git repositories. It provides a web interface and additional tools for collaboration such as:

  • Pull requests

  • Code reviews

  • Issue tracking

  • Project management

GitHub allows teams to store their Git repositories online and collaborate more easily.

GitLab

GitLab is another Git repository hosting platform, similar to GitHub. In addition to hosting repositories, GitLab provides integrated DevOps features such as:

  • Continuous Integration / Continuous Deployment (CI/CD)

  • Built-in project management

  • Security and monitoring tools

  • GitLab can be used either as a cloud service or installed on a private server.

Comparison

FeatureGitGitHubGitLab
TypeVersion Control SystemGit Repository Hosting PlatformGit Repository Hosting Platform
Main PurposeTrack and manage code changes locallyHost Git repositories and enable collaborationHost Git repositories with integrated DevOps tools
Where it runsInstalled locally on your computerCloud platform (web service)Cloud service or self-hosted server
Collaboration ToolsBasic collaboration through Git commandsPull requests, issues, project boardsMerge requests, issues, DevOps tools
CI/CDNot includedAvailable through GitHub ActionsBuilt-in CI/CD pipelines

Conclusion

  • Git → the tool used to track changes in code.
  • GitHub → a platform to store and collaborate on Git projects.
  • GitLab → similar to GitHub but with more built-in DevOps features.
Last updated on