Git · Senior · Question 5 of 76
How do packfiles keep repositories small?
- 1Old commits are deleted after 90 days
- 2Files are converted to a binary diff format on commit
- ✓Correct answer: Similar objects are stored as deltas against each other
Explanation
Loose objects are full zlib-compressed snapshots; packing finds similar blobs and stores one fully and others as deltas. That's why snapshots don't cost as much as they sound.