For AI agents: the complete documentation index is available at https://docs.gage.io/llms.txt, the full documentation bundle is available at https://docs.gage.io/llms-full.txt, and this page is available as Markdown at https://docs.gage.io/commands/pull.md.

gage pull

The gage pull command fetches objects from a remote and merges them into the store. It does what gage fetch followed by gage merge does, in one run. It pulls the named objects and what they link, the objects of a type and what they link with --type, or the whole remote with --all, and reports what could not be merged.

gage pull [OPTIONS] <REPOSITORY> [OBJECTS]...

REPOSITORY is a remote name from gage remote add, or any Git URL or path. A URL is pulled without adding a remote, and nothing of it stays in the store but the merged objects. Objects are tag names, object IDs, or unique ID prefixes as the remote has them. With no objects, the command pulls the objects the remote records as its fetch default. Pass --all to pull the whole remote.

OptionDescription
-a, --allPull every object and tag from the remote. The pull previews the counts and asks to continue.
--type <TYPE>Merge every object of a type and what it links (repeatable)
--oursKeep the local side on conflict
--theirsTake the remote side on conflict
-y, --yesSkip confirmation prompt

--type takes one of attachment, dataset, issue, note, scan, session, or share. The type of an object is not known before the object is transferred, so the pull fetches the whole remote. It then merges every object of that type and everything those objects link, and leaves the rest unmerged. --type excludes named objects, --all, --ours, and --theirs.

gage pull acme --type issue

An object that cannot be merged is reported as a conflict and left as it is, and the command exits with status 1. To resolve a conflict from a remote, run gage merge with the conflicting objects named and --ours or --theirs. To resolve one from a URL, run gage pull again the same way.

To copy data in the other direction, see gage push.