git gc

Category: Git - Advanced

git gc

Run garbage collection to optimize repository storage

Cleans up the repository's internal storage: compresses objects, removes loose objects, and optimizes the database.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.