అంతర్గతంగా, Git ఒక కంటెంట్-సంబోధన వస్తువు స్టోర్ — ఇది ప్రతిదీ వస్తువులుగా (blobs, trees, commits, tags) వారి SHA-1 హ్యాష్ ద్వారా గుర్తించబడిన విధంగా నిల్వ చేస్తుంది. ఈ మోడల్ను అర్థం చేసుకోవడం Git ను రహస్యంగా చేస్తుంది మరియు దాని ఆపరేషన్లు ఎందుకు ఆ విధంగా ప్రవర్తిస్తాయో వివరిస్తుంది.
Git ఒక కంటెంట్-సంబోధన వస్తువు స్టోర్
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).
