Download objects from remote storage into the local cache.
Fetch downloads selected objects into the without changing working files.
Without history flags it reads the current lock; explicit history selectors use
selected committed snapshots instead. Fetch includes selected mount-owned paths.
See fetch, sync, and pull to choose an operation,
or history selection to prefetch older versions.Without path flags, use the default named selection, or all paths if none is set.
Explicit filters replace that selection; --path . selects the whole repository.
Path selection rules
Selector
Selection used
--selection NAME
One saved definition, without changing the default.
--path, --include, or --exclude
.
Named and inline selectors cannot be combined. Paths are relative to the
repository root; patterns are relative to the selected path.
See Path selection and gat selection.
Usage: gat fetch [OPTIONS]Options: -o, --full-output Show all rows and complete details --selection <NAME> Use this saved selection for this operation without changing the default --path <PATH> Select this file or subtree. Any explicit --path, --include, or --exclude replaces the complete configured selection. Use --path . for the whole repository. For mount add, omission selects the source root; repository selection defaults never apply to mounts --include <INCLUDE> Glob pattern (matched relative to `--path`) selecting which paths to include. Repeatable. Component-aware: `*.bin` matches only immediate children, while `**/*.bin` matches recursively. Empty means everything under `--path` --exclude <EXCLUDE> Glob pattern (matched relative to `--path`) excluded from `--include` (or from everything under `--path`, if `--include` is empty). Repeatable. Component-aware like `--include`; exclude always wins over include --remote <REMOTE> Remote to fetch from. Overrides path routing; when omitted, routes choose storage by path, with the configured default remote as fallback --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/fetch","slug":"/commands/fetch","pageMetadata":{"title":"gat fetch","description":"Download objects from remote storage into the local cache.","href":"/commands/fetch"},"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: \"Download objects from remote storage into the local cache.\"\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Heading,Tab,Table,Tabs,Tooltip}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,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);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Fetch downloads selected objects into the `,_jsx(Tooltip,{tip:`File bytes stored locally by content ID, ready for sync to restore into the working tree.`,cta:`Cache and working files`,href:`/concepts/how-gat-works#what-lives-where`,children:`local cache`}),` without changing working files.\nWithout history flags it reads the current lock; explicit history selectors use\nselected committed snapshots instead. Fetch includes selected mount-owned paths.\nSee `,_jsx(_components.a,{href:`/concepts/how-gat-works#fetch-sync-and-pull`,children:`fetch, sync, and pull`}),` to choose an operation,\nor `,_jsx(_components.a,{href:`/concepts/history-selection`,children:`history selection`}),` to prefetch older versions.`]}),`\n`,_jsxs(_components.p,{children:[`Without path flags, use the default named selection, or all paths if none is set.\nExplicit filters replace that selection; `,_jsx(_components.code,{children:`--path .`}),` selects the whole repository.`]}),`\n`,_jsxs(Accordion,{title:`Path selection rules`,id:`path-selection-rules`,children:[_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Selector`}),_jsx(_components.th,{children:`Selection used`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--selection NAME`})}),_jsx(_components.td,{children:`One saved definition, without changing the default.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`--path`}),`, `,_jsx(_components.code,{children:`--include`}),`, or `,_jsx(_components.code,{children:`--exclude`})]}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(Tooltip,{tip:`Path, include, and exclude flags supplied directly to this command. These replace the saved selection as a whole, so repeat any exclusions you still need.`,cta:`Selection precedence`,href:`/concepts/path-selection`,children:`A complete inline selection`}),`.`]})]})]})]}),_jsxs(_components.p,{children:[`Named and inline selectors cannot be combined. Paths are relative to the\nrepository root; patterns are relative to the selected path.\nSee `,_jsx(_components.a,{href:`/concepts/path-selection`,children:`Path selection`}),` and `,_jsx(_components.a,{href:`/commands/selection`,children:`gat selection`}),`.`]})]}),`\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 fetch [OPTIONS]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Accordion,{title:`All options`,id:`gat-fetch-options`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`135`,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:`135`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Usage: gat fetch [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:` -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:` --selection \u003cNAME>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Use this saved selection for this operation without changing the`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` default`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --path \u003cPATH>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Select this file or subtree. Any explicit --path, --include, or`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --exclude replaces the complete configured selection. Use --path . for`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` the whole repository. For mount add, omission selects the source root;`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` repository selection defaults never apply to mounts`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --include \u003cINCLUDE>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" Glob pattern (matched relative to `--path`) selecting which paths to\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" include. Repeatable. Component-aware: `*.bin` matches only immediate\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" children, while `**/*.bin` matches recursively. Empty means everything\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" under `--path`\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --exclude \u003cEXCLUDE>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" Glob pattern (matched relative to `--path`) excluded from `--include`\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" (or from everything under `--path`, if `--include` is empty).\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\" Repeatable. Component-aware like `--include`; exclude always wins over\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` include`})}),`\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:` Remote to fetch from. Overrides path routing; when omitted, routes`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` choose storage by path, with the configured default remote as fallback`})}),`\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:`Current files`,id:`current-files`,children:[_jsx(_components.p,{children:`Download objects required by the current desired state.`}),_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:` fetch`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Directory`,id:`directory`,children:[_jsx(_components.p,{children:`Download one subtree from a named remote.`}),_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:` fetch`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --path`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --remote`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` backup`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Tags`,id:`tags`,children:[_jsx(_components.p,{children:`Download objects referenced by tag tips.`}),_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:` fetch`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --tags`})]}),`\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 fetch","description":"Download objects from remote storage into the local cache.","href":"/commands/fetch"}}},"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 fetch - gat","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-10T17:41:33.699Z","originalFileLocation":"commands/fetch.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=\"Download objects from remote storage into the local cache.\">\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 fetch - gat\">\u003cmeta data-mint-head property=\"og:description\" content=\"Download objects from remote storage into the local cache.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gat\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://getgat.dev/commands/fetch\">\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+fetch\u0026amp;description=Download+objects+from+remote+storage+into+the+local+cache.\u0026amp;theme=30e390fcb3db426888266f7e\u0026amp;signature=d0ce65edecd2e40d17ddf97614a7b79ae5ee5f44b9fd1f171ced6936169f0cf9\">\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 fetch - gat\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Download objects from remote storage into the local cache.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://getgat.mintlify.site/_mintlify/api/og/v2?division=Commands\u0026amp;title=gat+fetch\u0026amp;description=Download+objects+from+remote+storage+into+the+local+cache.\u0026amp;theme=30e390fcb3db426888266f7e\u0026amp;signature=d0ce65edecd2e40d17ddf97614a7b79ae5ee5f44b9fd1f171ced6936169f0cf9\">\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/fetch\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/commands/fetch.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/fetch#webpage\",\"url\":\"https://getgat.dev/commands/fetch\",\"name\":\"gat fetch\",\"description\":\"Download objects from remote storage into the local cache.\",\"dateModified\":\"2026-09-10T17:41:33.699Z\",\"isPartOf\":{\"@id\":\"https://getgat.dev#website\"},\"breadcrumb\":{\"@id\":\"https://getgat.dev/commands/fetch#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://getgat.dev/commands/fetch#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Commands\",\"item\":\"https://getgat.dev/commands/add\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"gat fetch\",\"item\":\"https://getgat.dev/commands/fetch\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://getgat.dev/commands/fetch#article\",\"headline\":\"gat fetch\",\"name\":\"gat fetch\",\"description\":\"Download objects from remote storage into the local cache.\",\"url\":\"https://getgat.dev/commands/fetch\",\"mainEntityOfPage\":{\"@id\":\"https://getgat.dev/commands/fetch#webpage\"},\"dateModified\":\"2026-09-10T17:41:33.699Z\",\"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/fetch.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","description":"Compare files across revisions or against the working tree.","href":"/commands/diff"},{"title":"gat fetch","href":"/commands/fetch"},{"title":"gat gc","description":"Remove objects from the local cache or remote storage.","tag":"Experimental","href":"/commands/gc"},{"title":"gat init","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 fetch - gat","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":[],"chunks":[]}