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/fetch.md.

gage fetch

The gage fetch command fetches objects from a remote and keeps them apart from the objects of the store. It fetches the named objects and what they link, or the whole remote when no object is named. The store’s own objects do not change until gage merge merges what was fetched.

gage fetch [OPTIONS] <REMOTE> [OBJECTS]...

REMOTE is a remote name from gage remote add. A Git URL or path is not accepted, because a fetch is kept under the remote’s name. Use gage pull to fetch and merge a URL in one run. Objects are tag names, object IDs, or unique ID prefixes as the remote has them. With no objects, the command fetches the objects the remote records as its fetch default, and a remote that records no fetch default is fetched whole. Pass --all to fetch the whole remote in place of its fetch default.

OptionDescription
-a, --allFetch every object and tag from the remote in place of its fetch default. The fetch previews the counts and asks to continue.
--listList what the remote has without fetching
-y, --yesSkip confirmation prompt

--list prints every tag the remote advertises with how the local store compares: new, same, or differs. Objects follow as a count by state. Nothing is transferred or written. --list accepts a URL or path as well as a remote name.

A fetch ends by printing the gage merge command that merges what it fetched.

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