Git - git-gc Documentation
git-scm.com › docs › git-gcSome Porcelain commands use this command to perform a light-weight garbage collection from time to time. The default value is 6700. Setting this to 0 disables not only automatic packing based on the number of loose objects, but any other heuristic git gc --auto will otherwise use to determine if there’s work to do, such as gc.autoPackLimit.
Garbage Collection - Think Like (a) Git
think-like-a-git.net › garbage-collectionEventually, Git will decide that it's time to run garbage collection. (You can trigger this process yourself, using git gc .) Starting from every branch and every tag, Git walks back through the graph, building a list of every commit it can reach. Once it's reached the end of every path, it deletes all the commits it didn't visit.
Git - git-gc Documentation
https://git-scm.com/docs/git-gcSome Porcelain commands use this command to perform a light-weight garbage collection from time to time. The default value is 6700. Setting this to 0 disables not only automatic packing based on the number of loose objects, but any other heuristic git gc --auto will otherwise use to determine if there’s work to do, such as gc.autoPackLimit.