A deep-dive note explaining how Git works from first principles. Explaining from core concepts like DAG structure, trees, snapshots, branch pointers, the staging area, and stash, to how commands like reset, revert, and rebase are built on top of these fundamentals.