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.
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.
--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.
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.