August 2019
Beginner
608 pages
16h 7m
English
Git has a special integrity checking feature called fsck. Just like the Filesystem Consistency Check (fsck) for filesystems, it can verify a structure and tell us whether it's compromised. The name of this Git function was chosen because Git was initially built as a filesystem. A filesystem is classed as a graph model, and Git implements this as tree and blob objects. Because all of the items are check-summed, fsck can verify the integrity of the objects and their relations. This graph is depicted in the following diagram:

Changes between files in a repository are saved as deltas and packed together in pack files, which ...
Read now
Unlock full access