Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 23, 2023 · Fundamentals

Why Clean Git Commit Messages Matter and How Git Stores Your Code

This article humorously yet informatively explains the importance of tidy Git commit messages, reveals how Git internally stores commits, trees, and blobs, highlights the problems of repository bloat, and offers concrete best‑practice and bad‑practice guidelines for managing large codebases.

GitVersion Controlbest-practices
0 likes · 9 min read
Why Clean Git Commit Messages Matter and How Git Stores Your Code
Liangxu Linux
Liangxu Linux
Mar 22, 2023 · Fundamentals

What Happens Inside Git? Uncover the Secrets of init, add, commit, and Branches

This guide demystifies Git’s inner workings by walking through repository initialization, the structure of the .git directory, how objects, blobs, trees, and commits are created, and the roles of the index, HEAD, branches, and remote configuration, complete with commands, examples, and visual diagrams.

BranchGitRepository
0 likes · 24 min read
What Happens Inside Git? Uncover the Secrets of init, add, commit, and Branches
ELab Team
ELab Team
Jun 15, 2022 · Fundamentals

Demystify Git: Build Your Own Git Commands from Scratch

This article walks through the fundamentals of Git’s internal architecture, explains how objects, hashes, and the repository directory work, and provides step‑by‑step Node.js code to implement core plumbing commands such as init, hash‑object, and cat‑file.

GitVersion Controlgit internals
0 likes · 20 min read
Demystify Git: Build Your Own Git Commands from Scratch
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 20, 2020 · Fundamentals

How Git’s First 1,000-Line Commit Shaped Its Core Design

An in‑depth exploration of Git’s initial 1,000‑line source code reveals the foundational design principles—workspace, index, objects, and three core object types—showing how early implementations of init‑db, update‑cache, write‑tree, and commit‑tree established the powerful, distributed version‑control system we use today.

Version Controlgit internalssoftware design
0 likes · 19 min read
How Git’s First 1,000-Line Commit Shaped Its Core Design
Alibaba Cloud Developer
Alibaba Cloud Developer
May 20, 2020 · Fundamentals

Unveiling Git’s Hidden Architecture: Objects, Packfiles, and Storage Models Explained

This article systematically explores Git’s underlying architecture, detailing the lifecycle of objects, core data structures, packfile formats, indexing mechanisms, and the algorithms used for object retrieval, while providing practical command examples and visual diagrams to demystify Git’s storage and retrieval models.

GitStoragegit internals
0 likes · 18 min read
Unveiling Git’s Hidden Architecture: Objects, Packfiles, and Storage Models Explained
Liangxu Linux
Liangxu Linux
Dec 16, 2019 · Fundamentals

How Git Stores Data Under the Hood: Objects, Trees, and Commits Explained

This article walks through Git's internal storage model using a concrete example, showing how blobs, trees, commits and tags are created, how the three Git areas (working directory, index, repository) interact, and why Git can efficiently track history while ensuring data integrity.

BlobGitVersion Control
0 likes · 11 min read
How Git Stores Data Under the Hood: Objects, Trees, and Commits Explained