Remove objects from the local cache or remote storage.
gat gc is Experimental: its interface or behavior may change. See Feature lifecycle.
keeps objects referenced by the selected Git histories and
the current repository’s working lock. Local-cache and remote collection use
the same rules to decide what to keep. See history selection
for snapshot traversal and shared caches
for storage used by multiple clones. To stop tracking a file, use gat rm.
History choice
Protected snapshots
No history flags
All available history, plus the current working lock.
Explicit history flags
Selected history from every repository, plus the current working lock.
--no-history
The current working lock and each additional repository’s HEAD lock.
Use repeatable --repository <LOCATION> to protect other Git repositories.
Supply every repository that shares the storage, including shared local caches.
Gat does not discover them automatically. Only committed locks from additional
repositories are protected; their uncommitted changes are not included.
How additional repositories are inspected
Local paths, file URLs, and remote Git URLs all use temporary
.
Gat removes them after inspection.History flags apply to every repository. Revision and exclusion names must
resolve in each one; per-repository selectors are not supported.
Start with --dry-run. Remote deletion requires --unsafe:
gat gc --remote origin --unsafe --repository ../other-project
An inspection failure or shallow history blocks deletion unless --unsafe is
supplied; dry runs report uncertain objects. --unsafe can delete objects still
in use. It does not protect against concurrent uploads or unlisted repositories
sharing storage.
Usage: gat gc [OPTIONS]Options: --no-history Keep only the current working lock and additional repositories' HEAD locks. Conflicts with every history selection or traversal flag -o, --full-output Show all rows and complete details --dry-run Show what would be deleted without changing anything --unsafe Allow remote deletion and override incomplete repository inspection. WARNING: unlisted repositories sharing storage are not protected --remote <REMOTE> Collect this remote instead of the local cache. Deletion requires --unsafe --repository <LOCATION> Additional Git repository whose selected history is protected. Repeat for multiple repositories. Local paths and Git URLs are cloned into temporary repositories; uncommitted peer changes are not included --rev <REV> Explicit revision/rev-spec to select (e.g. a commit, tag, or branch name). Repeatable; each one is resolved strictly and becomes its own root. Alone (with no other history flag), selects only that revision itself -- add `--ancestors`/`--depth`/`--since`/`--until` to also walk its ancestry. Combinable with `--branches`/`--tags`; mutually exclusive with `--all-history` --branches Select every branch tip: local (`refs/heads/**`) and remote-tracking (`refs/remotes/**`), deduplicated by commit id. There is no separate remote-tracking-only flag -- select a specific remote-tracking ref with `--rev origin/main`. Alone, selects only those tip commits themselves, not their ancestry -- combine with `--ancestors` (or `--depth`) to also walk backwards from each tip. A branch that *validly* resolves to a non-commit object is silently skipped rather than erroring; but a branch ref that *fails* to resolve at all (dangling, corrupt, unreadable) makes resolution fail closed with an error instead. Combinable with `--rev`/`--tags`; mutually exclusive with `--all-history` --tags Select every tag, peeled to the commit it points at. Alone, selects only those tagged commits themselves, not their ancestry -- combine with `--ancestors` (or `--depth`) to also walk backwards from each tag. A tag that *validly* resolves to a non-commit object (e.g. a tag pointing at a blob or tree) is silently skipped rather than erroring -- use an explicit `--rev` if you need that case to fail loudly; but a tag ref that *fails* to resolve at all makes resolution fail closed with an error instead. Combinable with `--rev`/`--branches`; mutually exclusive with `--all-history` --all-history Select every commit-bearing ref of any kind (branches, tags, and anything else, e.g. notes/CI refs) as roots, and walk each one's full, unbounded ancestry -- the only scope option that implicitly enables ancestry; every other scope option stays `Tips` unless a traversal flag is also given. A ref that *validly* resolves to a non-commit object (e.g. one pointing at a blob or tree) is silently skipped rather than erroring; but a ref that *fails* to resolve at all (dangling, corrupt, unreadable) makes resolution fail closed with an error instead. Combine with `--depth` to cap the walked depth per root instead of walking unbounded ancestry. Mutually exclusive with `--rev`/`--branches`/`--tags`: it is a distinct, broader root set, not a shorthand for combining them --ancestors Walk each selected root's full, unbounded ancestry (closest ancestors first, not commit-timestamp order) instead of selecting only the roots themselves. With no scope selector given (`--rev`/ `--branches`/`--tags`/`--all-history`), the root defaults to `HEAD` alone. Mutually exclusive with `--depth` (which already implies walking ancestry, bounded) --depth <DEPTH> Limit ancestry traversal from each selected root to at most this many *visited* commits (closest ancestors first, not commit-timestamp order), then union/deduplicate across roots. This bounds how far the walk goes, not how many commits end up in the result: combined with `--since`/`--until`, a commit outside the time window still consumes one unit of the depth budget, so `--depth 5 --since DATE` can return fewer than 5 commits per root (even zero) without walking further than 5 ancestors -- it never means "keep walking until 5 commits match". With no scope selector given (`--rev`/`--branches`/`--tags`/`--all-history`), the root defaults to `HEAD` alone -- `--depth 5` alone visits `HEAD` and its 4 closest ancestors, not 5 commits from every branch/tag. `--branches --depth 5` means up to 5 commits visited from *each* branch tip, not 5 total. `--all-history --depth 5` keeps `--all-history`'s root set (every commit-bearing ref) and only bounds that per-root walk to 5 commits each. Mutually exclusive with `--ancestors` --since <SINCE> Only include commits committed at/after this date. Accepts Git-style/ISO dates (e.g. `2024-01-01`, `2 weeks ago`). Implies walking ancestry from the selected roots to find commits in the time window, even without `--ancestors`/`--depth`; with no scope selector given, the root defaults to `HEAD` alone --until <UNTIL> Only include commits committed at/before this date. Accepts Git-style/ISO dates (e.g. `2024-01-01`, `2 weeks ago`). Implies walking ancestry from the selected roots to find commits in the time window, even without `--ancestors`/`--depth`; with no scope selector given, the root defaults to `HEAD` alone --first-parent Follow only the first parent of each commit instead of every parent (excludes commits only reachable via a merged-in branch). Only meaningful while walking ancestry -- implies walking it, even without `--ancestors`/`--depth`/`--since`/`--until`; with no scope selector given, the root defaults to `HEAD` alone (not every ref) --exclude-rev <EXCLUDE_REV> Exclude this revision and its ancestors from the selection. Repeatable. Only meaningful while walking ancestry -- implies walking it, even without `--ancestors`/`--depth`/`--since`/ `--until`; with no scope selector given, the root defaults to `HEAD` alone (not every ref) -h, --help Print help (see a summary with '-h')
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"gat","description":"Simple, fast, versioned large-file storage for git.","colors":{"primary":"#0F766E","light":"#CCFBF1","dark":"#115E59"},"logo":{"light":"https://mintcdn.com/getgat/gM8EvlJ90QP0hGoe/images/logo-original.png?fit=max\u0026auto=format\u0026n=gM8EvlJ90QP0hGoe\u0026q=85\u0026s=ef121cff2efb825b0c2aeec0eeda9a29","dark":"https://mintcdn.com/getgat/gM8EvlJ90QP0hGoe/images/logo-white.png?fit=max\u0026auto=format\u0026n=gM8EvlJ90QP0hGoe\u0026q=85\u0026s=e9253dc69dfaa4e880f9fc73a3b2f128"},"favicon":{"light":"https://mintcdn.com/getgat/gM8EvlJ90QP0hGoe/images/favicon-original.png?fit=max\u0026auto=format\u0026n=gM8EvlJ90QP0hGoe\u0026q=85\u0026s=e11d1a30140cf45739579860f2894872","dark":"https://mintcdn.com/getgat/gM8EvlJ90QP0hGoe/images/favicon-white.png?fit=max\u0026auto=format\u0026n=gM8EvlJ90QP0hGoe\u0026q=85\u0026s=83c5e10aa4521f6555d379ac98b4346b"},"navbar":{"links":[{"href":"https://github.com/getgat-dev/gat","label":"GitHub"}]},"seo":{"metatags":{"og:site_name":"Gat"},"organization":{"id":"https://getgat.dev/#organization","name":"Gat","url":"https://getgat.dev","logo":"https://getgat.dev/images/logo-original.png","sameAs":["https://github.com/getgat-dev/gat"]},"indexing":"navigable"},"integrations":{"gtm":{"tagId":"GTM-NV5TV492"}},"variables":{"colors.dark":"#115E59","colors.light":"#CCFBF1","colors.primary":"#0F766E"},"styling":{"latex":false},"background":{"color":{"light":"#f8fbfb","dark":"#0f1012"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"getgat","hasAudioNarration":false,"actualSubdomain":"getgat","customDomains":["getgat.dev"],"gitSource":{"type":"github","owner":"getgat-dev","repo":"gat","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af1a5d04fec639ad50e4480","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"default","tag":"Commands","count":18},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Concepts","count":5},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"References","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#content-area{padding-left:0!important;margin:auto!important}body:has(#gat-home) #navbar button.text-left>div:last-child{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media (min-width: 1280px){div:has(>#content-area):has(>#content-side-layout){gap:0!important}#content-area{max-width:750px!important;min-width:0}}@media (min-width: 1280px) and (max-width: 1439px){#content-side-layout{display:none!important}#content-area{padding-left:0!important}}"}],"page":{"pagePath":"commands/gc","slug":"/commands/gc","pageMetadata":{"title":"gat gc","description":"Remove objects from the local cache or remote storage.","tag":"Experimental","href":"/commands/gc"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Remove objects from the local cache or remote storage.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Danger,Heading,Tab,Table,Tabs,Tooltip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Danger)_missingMdxReference(`Danger`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tooltip)_missingMdxReference(`Tooltip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`gat gc`}),` is `,_jsx(_components.strong,{children:`Experimental`}),`: its interface or behavior may change. See `,_jsx(_components.a,{href:`/references/feature-lifecycle`,children:`Feature lifecycle`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(Tooltip,{tip:`Deleting stored content that is not protected by the selected locks and histories. Protection depends on the repositories and history you supply, not on when an object was last downloaded.`,children:`Garbage collection`}),` keeps objects referenced by the selected Git histories and\nthe current repository’s working lock. Local-cache and remote collection use\nthe same rules to decide what to keep. See `,_jsx(_components.a,{href:`/concepts/history-selection`,children:`history selection`}),`\nfor snapshot traversal and `,_jsx(_components.a,{href:`/guides/improving-performance#reuse-a-cache-across-repositories`,children:`shared caches`}),`\nfor storage used by multiple clones. To stop tracking a file, use `,_jsx(_components.a,{href:`/commands/rm`,children:`gat rm`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`History choice`}),_jsx(_components.th,{children:`Protected snapshots`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`No history flags`}),_jsx(_components.td,{children:`All available history, plus the current working lock.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Explicit history flags`}),_jsx(_components.td,{children:`Selected history from every repository, plus the current working lock.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--no-history`})}),_jsx(_components.td,{children:`The current working lock and each additional repository’s HEAD lock.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Use repeatable `,_jsx(_components.code,{children:`--repository \u003cLOCATION>`}),` to protect other Git repositories.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gc`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --repository`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ../other-project`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --repository`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://example.com/team/project.git`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gc`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --remote`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` origin`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --repository`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ../other-project`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Supply every repository that shares the storage, including shared local caches.\nGat does not discover them automatically. Only committed locks from additional\nrepositories are protected; their uncommitted changes are not included.`})}),`\n`,_jsxs(Accordion,{title:`How additional repositories are inspected`,id:`how-additional-repositories-are-inspected`,children:[_jsxs(_components.p,{children:[`Local paths, file URLs, and remote Git URLs all use temporary\n`,_jsx(Tooltip,{tip:`A Git copy containing commits and references, without checked-out working files. Gat reads committed locks from it.`,children:`bare clones`}),`.\nGat removes them after inspection.`]}),_jsx(_components.p,{children:`History flags apply to every repository. Revision and exclusion names must\nresolve in each one; per-repository selectors are not supported.`})]}),`\n`,_jsxs(_components.p,{children:[`Start with `,_jsx(_components.code,{children:`--dry-run`}),`. Remote deletion requires `,_jsx(_components.code,{children:`--unsafe`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gc`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --remote`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` origin`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --unsafe`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --repository`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ../other-project`})]}),`\n`]})})}),`\n`,_jsx(Danger,{children:_jsxs(_components.p,{children:[`An inspection failure or shallow history blocks deletion unless `,_jsx(_components.code,{children:`--unsafe`}),` is\nsupplied; dry runs report uncertain objects. `,_jsx(_components.code,{children:`--unsafe`}),` can delete objects still\nin use. It does not protect against concurrent uploads or unlisted repositories\nsharing storage.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Usage: gat gc [OPTIONS]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Accordion,{title:`All options`,id:`gat-gc-options`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`129`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`129`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Usage: gat gc [OPTIONS]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Options:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --no-history`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Keep only the current working lock and additional repositories' HEAD`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` locks. Conflicts with every history selection or traversal flag`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` -o, --full-output`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Show all rows and complete details`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --dry-run`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Show what would be deleted without changing anything`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --unsafe`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Allow remote deletion and override incomplete repository inspection.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` WARNING: unlisted repositories sharing storage are not protected`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --remote \u003cREMOTE>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Collect this remote instead of the local cache. Deletion requires`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --unsafe`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --repository \u003cLOCATION>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Additional Git repository whose selected history is protected. Repeat`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` for multiple repositories. Local paths and Git URLs are cloned into`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` temporary repositories; uncommitted peer changes are not included`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --rev \u003cREV>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Explicit revision/rev-spec to select (e.g. a commit, tag, or branch`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` name). Repeatable; each one is resolved strictly and becomes its own`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` root. Alone (with no other history flag), selects only that revision`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" itself -- add `--ancestors`/`--depth`/`--since`/`--until` to also walk\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" its ancestry. Combinable with `--branches`/`--tags`; mutually\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" exclusive with `--all-history`\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --branches`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" Select every branch tip: local (`refs/heads/**`) and remote-tracking\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" (`refs/remotes/**`), deduplicated by commit id. There is no separate\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` remote-tracking-only flag -- select a specific remote-tracking ref`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" with `--rev origin/main`. Alone, selects only those tip commits\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" themselves, not their ancestry -- combine with `--ancestors` (or\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" `--depth`) to also walk backwards from each tip. A branch that\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` *validly* resolves to a non-commit object is silently skipped rather`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` than erroring; but a branch ref that *fails* to resolve at all`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` (dangling, corrupt, unreadable) makes resolution fail closed with an`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" error instead. Combinable with `--rev`/`--tags`; mutually exclusive\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" with `--all-history`\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --tags`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Select every tag, peeled to the commit it points at. Alone, selects`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` only those tagged commits themselves, not their ancestry -- combine`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" with `--ancestors` (or `--depth`) to also walk backwards from each\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` tag. A tag that *validly* resolves to a non-commit object (e.g. a tag`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` pointing at a blob or tree) is silently skipped rather than erroring`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" -- use an explicit `--rev` if you need that case to fail loudly; but a\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` tag ref that *fails* to resolve at all makes resolution fail closed`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" with an error instead. Combinable with `--rev`/`--branches`; mutually\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" exclusive with `--all-history`\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --all-history`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Select every commit-bearing ref of any kind (branches, tags, and`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` anything else, e.g. notes/CI refs) as roots, and walk each one's full,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` unbounded ancestry -- the only scope option that implicitly enables`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" ancestry; every other scope option stays `Tips` unless a traversal\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` flag is also given. A ref that *validly* resolves to a non-commit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` object (e.g. one pointing at a blob or tree) is silently skipped`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` rather than erroring; but a ref that *fails* to resolve at all`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` (dangling, corrupt, unreadable) makes resolution fail closed with an`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" error instead. Combine with `--depth` to cap the walked depth per root\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` instead of walking unbounded ancestry. Mutually exclusive with`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" `--rev`/`--branches`/`--tags`: it is a distinct, broader root set, not\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` a shorthand for combining them`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --ancestors`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Walk each selected root's full, unbounded ancestry (closest ancestors`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` first, not commit-timestamp order) instead of selecting only the roots`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" themselves. With no scope selector given (`--rev`/\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" `--branches`/`--tags`/`--all-history`), the root defaults to `HEAD`\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" alone. Mutually exclusive with `--depth` (which already implies\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` walking ancestry, bounded)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --depth \u003cDEPTH>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Limit ancestry traversal from each selected root to at most this many`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` *visited* commits (closest ancestors first, not commit-timestamp`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` order), then union/deduplicate across roots. This bounds how far the`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` walk goes, not how many commits end up in the result: combined with`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" `--since`/`--until`, a commit outside the time window still consumes\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" one unit of the depth budget, so `--depth 5 --since DATE` can return\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` fewer than 5 commits per root (even zero) without walking further than`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 5 ancestors -- it never means \"keep walking until 5 commits match\".`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` With no scope selector given`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" (`--rev`/`--branches`/`--tags`/`--all-history`), the root defaults to\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" `HEAD` alone -- `--depth 5` alone visits `HEAD` and its 4 closest\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" ancestors, not 5 commits from every branch/tag. `--branches --depth 5`\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` means up to 5 commits visited from *each* branch tip, not 5 total.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" `--all-history --depth 5` keeps `--all-history`'s root set (every\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` commit-bearing ref) and only bounds that per-root walk to 5 commits`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" each. Mutually exclusive with `--ancestors`\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --since \u003cSINCE>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Only include commits committed at/after this date. Accepts`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" Git-style/ISO dates (e.g. `2024-01-01`, `2 weeks ago`). Implies\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` walking ancestry from the selected roots to find commits in the time`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" window, even without `--ancestors`/`--depth`; with no scope selector\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" given, the root defaults to `HEAD` alone\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --until \u003cUNTIL>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Only include commits committed at/before this date. Accepts`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" Git-style/ISO dates (e.g. `2024-01-01`, `2 weeks ago`). Implies\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` walking ancestry from the selected roots to find commits in the time`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" window, even without `--ancestors`/`--depth`; with no scope selector\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" given, the root defaults to `HEAD` alone\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --first-parent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Follow only the first parent of each commit instead of every parent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` (excludes commits only reachable via a merged-in branch). Only`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` meaningful while walking ancestry -- implies walking it, even without`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" `--ancestors`/`--depth`/`--since`/`--until`; with no scope selector\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" given, the root defaults to `HEAD` alone (not every ref)\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --exclude-rev \u003cEXCLUDE_REV>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Exclude this revision and its ancestors from the selection.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Repeatable. Only meaningful while walking ancestry -- implies walking`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" it, even without `--ancestors`/`--depth`/`--since`/ `--until`; with no\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" scope selector given, the root defaults to `HEAD` alone (not every\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ref)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` -h, --help`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Print help (see a summary with '-h')`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsxs(Tabs,{sync:false,children:[_jsxs(Tab,{title:`No history`,id:`no-history`,children:[_jsx(_components.p,{children:`Retain the current working lock and peer protections without consulting this repository’s history.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gc`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --no-history`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Remote`,id:`remote`,children:[_jsx(_components.p,{children:`Inspect a named remote without deleting objects.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gc`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --remote`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` backup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --repository`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ../other-project`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Branches`,id:`branches`,children:[_jsx(_components.p,{children:`Build the keep set from all branch histories.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gc`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --branches`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --ancestors`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`})]}),`\n`]})})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"gat gc","description":"Remove objects from the local cache or remote storage.","tag":"Experimental","href":"/commands/gc"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"getgat","siteName":"gat","title":"gat gc - gat","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-10T17:41:33.702Z","originalFileLocation":"commands/gc.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Remove objects from the local cache or remote storage.\">\u003cmeta data-mint-head name=\"application-name\" content=\"gat\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"gat gc - gat\">\u003cmeta data-mint-head property=\"og:description\" content=\"Remove objects from the local cache or remote storage.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gat\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://getgat.dev/commands/gc\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://getgat.mintlify.site/_mintlify/api/og/v2?division=Commands\u0026amp;title=gat+gc\u0026amp;description=Remove+objects+from+the+local+cache+or+remote+storage.\u0026amp;theme=30e390fcb3db426888266f7e\u0026amp;signature=d8c2e837efda9ad3b41536f112fb20ac542568392599eb393398b14eec3ccab4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"gat gc - gat\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Remove objects from the local cache or remote storage.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://getgat.mintlify.site/_mintlify/api/og/v2?division=Commands\u0026amp;title=gat+gc\u0026amp;description=Remove+objects+from+the+local+cache+or+remote+storage.\u0026amp;theme=30e390fcb3db426888266f7e\u0026amp;signature=d8c2e837efda9ad3b41536f112fb20ac542568392599eb393398b14eec3ccab4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"gat\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F766E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://getgat.dev/commands/gc\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/commands/gc.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://getgat.dev/#organization\",\"name\":\"Gat\",\"url\":\"https://getgat.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://getgat.dev/images/logo-original.png\"},\"sameAs\":[\"https://github.com/getgat-dev/gat\"]},{\"@type\":\"WebSite\",\"@id\":\"https://getgat.dev#website\",\"name\":\"gat\",\"url\":\"https://getgat.dev\",\"publisher\":{\"@id\":\"https://getgat.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://getgat.dev/commands/gc#webpage\",\"url\":\"https://getgat.dev/commands/gc\",\"name\":\"gat gc\",\"description\":\"Remove objects from the local cache or remote storage.\",\"dateModified\":\"2026-09-10T17:41:33.702Z\",\"isPartOf\":{\"@id\":\"https://getgat.dev#website\"},\"breadcrumb\":{\"@id\":\"https://getgat.dev/commands/gc#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://getgat.dev/commands/gc#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Commands\",\"item\":\"https://getgat.dev/commands/add\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"gat gc\",\"item\":\"https://getgat.dev/commands/gc\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://getgat.dev/commands/gc#article\",\"headline\":\"gat gc\",\"name\":\"gat gc\",\"description\":\"Remove objects from the local cache or remote storage.\",\"url\":\"https://getgat.dev/commands/gc\",\"mainEntityOfPage\":{\"@id\":\"https://getgat.dev/commands/gc#webpage\"},\"dateModified\":\"2026-09-10T17:41:33.702Z\",\"publisher\":{\"@id\":\"https://getgat.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://getgat.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"gat\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gat\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/commands/gc.md","siteName":"gat","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Installation","href":"/installation"},{"title":"Quickstart","href":"/quickstart"},{"title":"Set up a remote","href":"/set-up-a-remote"}]},{"group":"Concepts","icon":"file-text","pages":[{"title":"How Gat works","href":"/concepts/how-gat-works"},{"title":"Automatic sync","href":"/concepts/automatic-sync"},{"title":"Path selection","href":"/concepts/path-selection"},{"title":"History selection","href":"/concepts/history-selection"},{"title":"Config inheritance","href":"/concepts/config-inheritance"}]},{"group":"Guides","icon":"graduation-cap","pages":[{"title":"Use Gat MCP in tools","href":"/guides/use-gat-mcp"},{"title":"Branching and merging","href":"/guides/branching-and-merging"},{"title":"Consuming Gat assets","href":"/guides/consuming-gat-assets"},{"title":"Using multiple remotes","href":"/guides/using-multiple-remotes"},{"title":"Improving performance","href":"/guides/improving-performance"},{"title":"Migrating from Git LFS","href":"/guides/migrating-from-git-lfs"},{"title":"Migrating from DVC","href":"/guides/migrating-from-dvc"}]},{"group":"References","icon":"book-open","pages":[{"title":"Configuration","href":"/references/configuration"},{"title":"Remote providers","href":"/references/remote-providers"},{"title":"Feature lifecycle","href":"/references/feature-lifecycle"}]},{"group":"Commands","icon":"square-terminal","pages":[{"title":"gat add","href":"/commands/add"},{"title":"gat config","href":"/commands/config"},{"title":"gat diff","href":"/commands/diff"},{"title":"gat fetch","description":"Download objects from remote storage into the local cache.","href":"/commands/fetch"},{"title":"gat gc","tag":"Experimental","href":"/commands/gc"},{"title":"gat init","description":"Initialize Gat with hooks, merge support, and a local cache.","href":"/commands/init"},{"title":"gat ls-files","href":"/commands/ls-files"},{"title":"gat mount","tag":"Experimental","href":"/commands/mount"},{"title":"gat mv","href":"/commands/mv"},{"title":"gat pull","href":"/commands/pull"},{"title":"gat push","href":"/commands/push"},{"title":"gat remote","href":"/commands/remote"},{"title":"gat rm","href":"/commands/rm"},{"title":"gat route","tag":"Experimental","href":"/commands/route"},{"title":"gat selection","tag":"Experimental","href":"/commands/selection"},{"title":"gat status","href":"/commands/status"},{"title":"gat sync","href":"/commands/sync"},{"title":"gat system","tag":"Experimental","href":"/commands/system"}]}]},"basePath":"","title":"gat gc - gat","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":[],"chunks":[]}