Git 01: The Blob

The hash function at work: any input in, a fixed-size number out, the same number every time. Git’s whole object database is that board used as a filing system, with the number as the file’s name.
Before you start. Build Your Own Git set out the build: git stores a version of your project as objects named by the hash of their contents. This stage builds the smallest object, the blob, which holds the bytes of one file. A hash, as Hashing draws it, is a fingerprint: the same bytes always give the same fingerprint.