Skip to content

Glossary: Git Beyond the Basics

garbage collection

Also written: git gc, gc

Git's occasional cleanup that deletes commits nothing points to any more. After it runs, even the reflog can't bring them back.

Where the book teaches it

Related terms

reflog