Skip to main content
Sync updates working files to match the current gat.lock, using the local cache. Preview updates, removals, conflicts, and missing objects before applying:
Sync preserves conflicting local edits unless you pass --force. See how sync plans changes and resolving conflicts. Without fetching or repair enabled, sync uses only the local cache. Materialization strategies control how cached bytes become working files; configuration scopes control whether sync settings apply to one clone or the whole project.
Trusting recorded state can miss files changed or deleted outside Gat.
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.
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

Examples

Materialize the current desired state.