Git GC
Git repositories accumulate various types of garbage like “orphaned” or inaccessible commits. Executing git gc tells Git to clean up the mess it’s made in the current repository, hence the name “garbage collection.” In addition to detached commit clean up, git gc will also perform compression on stored Git objects, freeing up precious disk space. Learn everything you need to know about git gc in this advanced Git tutorial.
Get Gourav Mehta’s stories in your inbox
Join Medium for free to get updates from this writer.
For more info refer




