आन्तरिक रूपमा, Git एक content-addressable object store हो — यसले सबै कुरा objects (blobs, trees, commits, tags) को रूपमा भण्डार गर्छ जो तिनीहरूको SHA-1 hash द्वारा पहिचान गरिन्छ। यो मडेल बुझ्दा Git को रहस्य समाधान हुन्छ र व्याख्या गर्छ कि यसको सञ्चालन किन यस तरिकाले व्यवहार गर्छ।
Git एक content-addressable object store हो
Git stores 4 types of OBJECTS, each identified by the SHA-1 HASH of its content:
BLOB → file CONTENTS (just the data, no filename)
TREE → a directory: maps names → blobs (files) and trees (subdirs) + permissions
COMMIT → a snapshot: points to a TREE (the root) + parent commit(s) + author/message
TAG → an annotated tag object (points to a commit, with metadata)
→ Content-addressable: an object's ID IS the hash of its content (same content = same hash).
