Skip to main content
gat mount is Experimental: its interface or behavior may change. See Feature lifecycle.
A mount imports tracked files from another Git repository and owns every Gat-managed path below its . Its stable name identifies the source independently of where the files are placed. Adding or updating a mount records a ; use gat pull to restore its working files. Follow Consuming Gat assets for the import, pull, and commit sequence. --remote and --no-setup cannot be combined. Setup never changes the destination’s default remote.
Gat reuses a destination remote with the same URL template as the source default remote. Otherwise, it imports that remote under an available name.If the source has no default remote, the mount succeeds without automatic storage setup. Configure storage with gat remote and gat route.
Routes and remotes are independent configuration. Moving or removing a mount does not move or remove them.

Usage

Subcommands

gat mount list

gat mount add

gat mount remove

gat mount update

gat mount show

gat mount add

Import a committed source snapshot under a target directory. Storage setup is automatic unless --no-setup is supplied.

Usage

Examples

Import mount metadata without changing remotes or routes.

gat mount list

List effective mounts and their targets.

Usage

Examples

Show every effective mount.

gat mount remove

Remove a mount and its imported tracking entries. Use --detach-only to retain the entries under local ownership. Routes and remotes are kept.

Usage

Examples

Remove the definition and its owned rows.

gat mount show

Show the source, pinned revision, filters, target, owned path count, effective storage route, and defining scope.

Usage

Examples

Inspect source, target, ownership, revision, and routing details.

gat mount update

Refresh the source snapshot. Omitted settings are preserved; supplied filter lists replace the saved lists. Use --clear-include or --clear-exclude to clear a saved list independently.

Usage

Examples

Select all paths below the saved source path by clearing both filter lists.