Skip to main content
Sync reconciles the working tree with the current gat.lock: it creates new or missing files, replaces changed desired content, and removes paths no longer tracked. It uses to check working files. See how sync plans changes and automatic sync and conflicts. Without fetching or repair enabled, sync uses only the local cache.
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.