goback gc
Collect garbage: mark the objects that live commits and pins reach, then rewrite the archives that hold enough dead objects
goback [global flags] gc [flags]| Flag | Description | Environment | Default |
|---|---|---|---|
--readers value |
how many objects to read at once during the mark | 32 |
|
--dead-ratio value |
rewrite an archive once this share of its bytes is dead | 0.3 |
|
--erasure-bound value |
rewrite an archive that has held dead objects this long, even below –dead-ratio | 336h0m0s |
|
--min-age value |
keep every object younger than this | 24h0m0s |
|
--no-sweep |
mark the live objects without rewriting any archives | ||
--temp-dir value |
directory for the mark’s temporary files; the system temp directory by default |