Upload objects needed by the current lock. Explicit history selectors replace
that set with objects from selected committed snapshots. Path filters apply
before content is .A broad push skips mount-owned paths and summarizes
each skipped mount. Cache problems are reported per path.
Upload imported content explicitly
A selection rooted at or inside a mount can upload its objects.
--path . still skips mounts; selecting a mount’s path opts it in.
See mount ownership
before publishing imported content.
Choose a default remote, configure
routes, or pass
--remote NAME. Adding a named remote alone does not select it for transfers.
Run gat push before git push so collaborators can fetch the bytes referenced
by your commits. See History selection to publish
objects from earlier snapshots too.
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 push [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 push to. 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/push","slug":"/commands/push","pageMetadata":{"title":"gat push","description":"Upload tracked objects to remote storage.","href":"/commands/push"},"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: \"Upload tracked objects to 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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Heading,Tab,Table,Tabs,Tip,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(!Tip)_missingMdxReference(`Tip`,true);if(!Tooltip)_missingMdxReference(`Tooltip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Upload objects needed by the current lock. Explicit history selectors replace\nthat set with objects from selected committed snapshots. Path filters apply\nbefore content is `,_jsx(Tooltip,{tip:`Selected paths with identical content IDs need only one object within the applicable storage destination. Different filenames or revisions can reference the same bytes.`,cta:`Content identity`,href:`/concepts/how-gat-works#content-identity-is-independent-of-path`,children:`deduplicated`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A broad push skips `,_jsx(_components.a,{href:`/guides/consuming-gat-assets`,children:`mount-owned paths`}),` and summarizes\neach skipped mount. Cache problems are reported per path.`]}),`\n`,_jsx(Accordion,{title:`Upload imported content explicitly`,id:`upload-imported-content-explicitly`,children:_jsxs(_components.p,{children:[`A selection rooted at or inside a mount can upload its objects.\n`,_jsx(_components.code,{children:`--path .`}),` still skips mounts; selecting a mount’s path opts it in.\nSee `,_jsx(_components.a,{href:`/guides/consuming-gat-assets#local-modifications`,children:`mount ownership`}),`\nbefore publishing imported content.`]})}),`\n`,_jsxs(_components.p,{children:[`Choose a `,_jsx(_components.a,{href:`/set-up-a-remote#select-the-default`,children:`default remote`}),`, configure\n`,_jsx(_components.a,{href:`/guides/using-multiple-remotes#remote-selection-at-a-glance`,children:`routes`}),`, or pass\n`,_jsx(_components.code,{children:`--remote NAME`}),`. Adding a named remote alone does not select it for transfers.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`gat push`}),` before `,_jsx(_components.code,{children:`git push`}),` so collaborators can fetch the bytes referenced\nby your commits. See `,_jsx(_components.a,{href:`/concepts/history-selection`,children:`History selection`}),` to publish\nobjects from earlier snapshots too.`]})}),`\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 push [OPTIONS]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Accordion,{title:`All options`,id:`gat-push-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 push [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 push to. Overrides path routing; when omitted, routes choose`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 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:`Upload objects referenced 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:` push`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Directory`,id:`directory`,children:[_jsx(_components.p,{children:`Upload one subtree to 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:` push`}),_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:`History`,id:`history`,children:[_jsx(_components.p,{children:`Upload objects referenced by one committed revision.`}),_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:` push`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --rev`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` v1.0`})]}),`\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 push","description":"Upload tracked objects to remote storage.","href":"/commands/push"}}},"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 push - gat","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-10T17:41:33.712Z","originalFileLocation":"commands/push.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=\"Upload tracked objects to 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 push - gat\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload tracked objects to remote storage.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gat\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://getgat.dev/commands/push\">\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+push\u0026amp;description=Upload+tracked+objects+to+remote+storage.\u0026amp;theme=30e390fcb3db426888266f7e\u0026amp;signature=639e2e21a6d0a01223a851f81a7c169c7dadfb1ac8b5b155dac07e3af8f2faa0\">\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 push - gat\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload tracked objects to remote storage.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://getgat.mintlify.site/_mintlify/api/og/v2?division=Commands\u0026amp;title=gat+push\u0026amp;description=Upload+tracked+objects+to+remote+storage.\u0026amp;theme=30e390fcb3db426888266f7e\u0026amp;signature=639e2e21a6d0a01223a851f81a7c169c7dadfb1ac8b5b155dac07e3af8f2faa0\">\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/push\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/commands/push.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/push#webpage\",\"url\":\"https://getgat.dev/commands/push\",\"name\":\"gat push\",\"description\":\"Upload tracked objects to remote storage.\",\"dateModified\":\"2026-09-10T17:41:33.712Z\",\"isPartOf\":{\"@id\":\"https://getgat.dev#website\"},\"breadcrumb\":{\"@id\":\"https://getgat.dev/commands/push#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://getgat.dev/commands/push#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Commands\",\"item\":\"https://getgat.dev/commands/add\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"gat push\",\"item\":\"https://getgat.dev/commands/push\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://getgat.dev/commands/push#article\",\"headline\":\"gat push\",\"name\":\"gat push\",\"description\":\"Upload tracked objects to remote storage.\",\"url\":\"https://getgat.dev/commands/push\",\"mainEntityOfPage\":{\"@id\":\"https://getgat.dev/commands/push#webpage\"},\"dateModified\":\"2026-09-10T17:41:33.712Z\",\"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/push.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","href":"/commands/fetch"},{"title":"gat gc","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","description":"Download objects and materialize files in the working tree.","href":"/commands/pull"},{"title":"gat push","href":"/commands/push"},{"title":"gat remote","description":"Configure remote storage including local file remotes.","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 push - gat","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":[],"chunks":[]}