உள்ளூரில், 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).
