TechnologyVersion control system

Git

Free and open-source distributed version control system created by Linus Torvalds in 2005, used to track changes in source code.

Git is a distributed version control system that records the history of changes to a set of files, most often software source code. Every working copy is a full repository with the complete history, so developers can commit, branch, inspect history and merge offline, then exchange changes with other repositories. Git stores data as snapshots in a content-addressed object database, where files, directories and commits are identified by cryptographic hashes, forming a structure similar to a Merkle tree that makes tampering with history detectable.

Linus Torvalds wrote Git in April 2005 for Linux kernel development, after the kernel project lost free access to the proprietary BitKeeper system. He designed it for speed, strong integrity and support for large, distributed projects. Within months he handed maintenance to Junio Hamano, who has led the project since. Git is licensed under GPL version 2. Lightweight branching and merging made workflows built around feature branches and pull requests practical, and the project has been adding support for SHA-256 hashes alongside the original SHA-1.

Git became the dominant version control system across open-source and commercial software, helped by hosting services such as GitHub, GitLab and Codeberg. Its model supports collaboration among thousands of contributors and gives every clone a backup of the project's history. Its command-line interface is notoriously inconsistent, and concepts such as the staging area and rebasing can confuse newcomers, which has spawned many graphical clients and guides. Resolving a merge conflict remains a routine part of collaborative work.

Key points

  • Git gives every clone a full copy of the project's history.
  • Linus Torvalds created Git in 2005 for Linux kernel development.
  • Junio Hamano has maintained Git since 2005.
  • Commits are identified by cryptographic hashes, making altered history detectable.

Related entries

Glossary term

Version Control

ProgrammingDevOps

System that records changes to files over time so that people can track history, revert mistakes and collaborate on the same codebase.

Person

Linus Torvalds

FOSSProgramming

Finnish-American software engineer who created the Linux kernel in 1991 and the Git version control system in 2005.

Technology

GitHub

ProgrammingFOSS

Web platform owned by Microsoft for hosting Git repositories and collaborating on software through pull requests, issues and automation.

Technology

GitLab

ProgrammingDevOps

DevOps platform for hosting Git repositories with built-in CI/CD, issue tracking and security tools, available as a service or self-managed.

Glossary term

Merge Conflict

Programming

Situation in version control where changes from different branches touch the same part of a file and cannot be combined automatically.

Glossary term

Pull Request

ProgrammingFOSS

Proposal to merge a set of code changes from one branch or fork into another, used as the focal point for review and discussion.

Glossary term

Merkle Tree

BlockchainProgramming

Tree data structure in which each non-leaf node holds a hash of its children, enabling efficient and secure verification of large data sets.

Technology

Linux

FOSSHardware

Free and open-source Unix-like kernel created by Linus Torvalds in 1991 that underpins Android, most servers and many embedded devices.

Featured in guides

Referenced by

Other entries that discuss or point to Git.