git/gc

Garbage Collection

Cleanup unnecessary files and optimize local repository

git
gc
cleanup

Command

git gc

Explanation

git gc is used to cleanup unnecessary files and optimize the local repository. It cleans up the unnecessary files and optimizes the local repository.

Examples

Run garbage collection

git gc

More thorough cleanup

git gc --aggressive