---
answer: direct
beat: system-design
source: 1 article · updated: August 15, 2026
---

What happens when a single file changes in a Git repository?

When one file changes, its blob hash changes, causing its parent tree hash to update, which propagates to the root tree hash and finally the commit hash. Unchanged sibling files and directories keep their hashes identical, so Git's status check skips them entirely—only changed paths trigger verification.

Answered in

Merkle Trees: How Git Detects Changes in Milliseconds

Git hashes files into nested cryptographic trees to skip unchanged directories in one comparison, finding changes across millions of files faster than scanning.

Crashtech Editorial August 15, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.