GitHub
GitHub logoGitHub · Feature trail

Git Garbage Collection Optimization

1 post · Sep 2022

What this trail covers

This feature thread tracks the evolution of optimizing Git's garbage collection process, particularly for large repositories and the challenges of managing unreachable objects. Initially, the focus was on the basic `git gc` command and its pruning behavior. This post details the development of 'cruft packs' to address issues with storing loose unreachable objects and the race conditions that can occur during object deletion. It also covers the contribution of these improvements upstream to the Git project.

All GitHub trails