dolt-gc
cleanup and optimize repository storage
TLDR
Run garbage collection
SYNOPSIS
dolt gc [options]
DESCRIPTION
dolt gc performs garbage collection on the Dolt repository, removing unreachable objects and optimizing storage. This reclaims space from deleted branches, reset commits, and other orphaned data.
Garbage collection consolidates the database storage, potentially reducing disk usage and improving query performance. It's particularly useful after operations that create orphaned data like branch deletions or hard resets.
The shallow option performs a quicker, less thorough collection suitable for regular maintenance, while full gc provides complete cleanup.
PARAMETERS
--shallow
Perform shallow (faster) garbage collection.--help
Display help information.
CAVEATS
May take significant time on large repositories. Should not be interrupted. Backup recommended before running on important data. Cannot recover deleted data after gc.
HISTORY
dolt gc implements garbage collection similar to git gc, adapted for Dolt's database storage format. It maintains repository health and optimizes storage utilization.
