gat.lock.
Run these commands inside a repository initialized with gat init.
For the relationship between commits, storage, and working files, see
How Gat works.
1
Add a storage location
Choose one example and replace its bucket, container, region, or path.
Create cloud storage and configure provider credentials
before transferring files. Local storage needs no cloud credentials.
- Local directory
- S3
- Azure Blob
- Google Cloud
- Alibaba OSS
Use an absolute path with three slashes. The directory must be accessible
to each machine that will use this remote.
2
Select the default
--remote NAME selects another.add validates configuration, and show displays it with secrets redacted.
Neither proves connectivity or storage permissions.3
Upload a tracked file
Replace this path with a file Git does not already track:This uploads the object and checks remote presence. An empty selection or
already-cached download is not an access test.
Network remotes require permission to list the configured storage root
during the connection check,
plus permission for the transfers you run.
4
Share the configuration
5
Verify from a fresh clone
In a fresh clone of the published repository:
Open the restored file to confirm download access and its contents.
A local
file:// remote must be accessible at its configured path.Keep credentials out of Git
Prefer your provider’s credential environment or identity authentication. For a secret URL option, save a${NAME} reference and single-quote the URL
so your shell preserves it.
Manage storage
Change or remove a remote
Change or remove a remote
Change or unset references to a remote before removing it. Use the scope
that defines it; an update does not create a local override.
Keep a remote on this machine only
Keep a remote on this machine only
--local writes .gat/gat.yaml, which is not committed. --global writes
user-wide settings. See Config inheritance.Provider credentials
Authentication, endpoints, and connection troubleshooting.
Use multiple remotes
Route paths to different stores or copy objects to a backup.

