Skip to main content

Command Palette

Search for a command to run...

Inside git: How it works.

Published
1 min read

Git is a free Open Source Version Control system used for the tracking changes in source-code.

Understanding .git folder : .git is a hidden folder that lives inside every local git Repository . It contain multiple files that are utilized to track your code base .Each and every file and directories have specific purpose .

Git Objects :Git manages History using a content-addressable filesystem build on four core object types Blob ,Tree, Commit, Tags .Means if you store Points to a tree or your project state. Tag: A social reference to a commit often with extra info like a tagger and message

Git add & Git Commit :-Git add :The command stages changes by hashing files into blobs. While Git commit : This finalizes the snapshot by building trees from the index and creating a commit object.

Git uses hashes as unique identifier for every objects ensuring the content integrity through content-Addressable storage.