← All work

Backend · Dev tool

myGit

Git internals from scratch — object store, index, and refs implemented directly on the .git format.

About

myGit implements Git internals from scratch in a single main.py, working directly against the .git format: the object store with SHA-1-addressed blobs, the index, and refs under refs/heads plus HEAD.

Scope

  • Object store — Blobs written and read by hash
  • Index — Staged file state
  • Refs — Branch pointers under refs/heads and HEAD

Stack

Python 3Git object modelSHA-1 hashing