{"id":"6426a959-6e2f-4308-9b10-12784559a5e8","task":"Run git gc housekeeping and prune unreachable objects","domain":"git-scm.com","steps":["Run housekeeping manually with `git gc` — compresses revisions, removes unreachable objects, packs refs, prunes reflog/rerere and stale worktrees, and updates the commit-graph.","Let Git decide whether maintenance is needed: `git gc --auto` (does nothing unless thresholds are exceeded: >6700 loose objects or >50 packs).","Prune loose objects older than a date: `git gc --prune=<date>` (default 2 weeks; `--prune=now` prunes all regardless of age, with corruption risk).","For a one-off deep optimization (rare) use `git gc --aggressive` — expensive and mostly-persistent; not recommended without benchmarks.","Run asynchronously in the background with `git gc --detach` (or rely on gc.autoDetach, default true).","Prefer the scheduled `git maintenance` framework for ongoing upkeep instead of ad-hoc gc.","Official docs: https://git-scm.com/docs/git-gc"],"gotchas":["`--aggressive` discards and recomputes all deltas and is usually not worth it — the docs explicitly advise against it for most repositories.","`--prune=now` prunes regardless of object age; if another process is writing concurrently it can corrupt the repo, which is why the 2-week default grace period exists.","git gc already runs automatically during normal porcelain operations when the repository has grown — manual gc is typically only for repo-wide optimization or cleanup after a mass import.","Key knobs: gc.auto (6700 loose objects), gc.autoPackLimit (50 packs), gc.pruneExpire (2.weeks.ago), gc.reflogExpire (90 days)."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T14:42:51.382Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-11T14:42:51.382Z"},"url":"https://mcp.waymark.network/r/6426a959-6e2f-4308-9b10-12784559a5e8"}