gat.lock metadata.
Old commits remain unchanged and may still require Git LFS and its storage.
See Gat’s file lifecycle
for how new versions are recorded and published.
Before you start
Start from a and restore the real file contents:Migrate the files
This example movesmodels/encoder.bin and models/decoder.bin. Substitute
your paths. For a partial migration, preserve LFS rules for files that stay in LFS.
1
Remove the matching LFS rule
models/** with the rule you intend to remove. Preserve unrelated
attributes, and narrow broader rules if other files still need them.2
Remove only Git's index entries
3
Track the bytes with Gat
4
Review and commit the metadata
gat.lock.5
Publish the bytes, then the branch
--path . overrides any configured default selection.Validate from a fresh clone
Replace the repository URL:Open the restored files and confirm their contents before merging the
migration branch. No history rewrite or force-push is needed.
Roll out to the team
After the migration branch is merged, existing clones run:git lfs lock workflow separately; Gat does not replace it.
Troubleshooting
Gat says a file is still tracked by Git
Gat says a file is still tracked by Git
git lfs untrack changes attributes, not the index. Run
git rm --cached -- PATH, then gat add PATH for each migrating file.
Avoid removing an entire directory from the index unless every file is moving.The file is missing or contains an LFS pointer
The file is missing or contains an LFS pointer
Recover the real bytes from the pre-migration revision or a clean LFS
checkout. Run
git lfs pull there before copying the files into the
migration checkout and repeating gat add.LFS still lists some files
LFS still lists some files
That is expected for a partial migration. Inspect
git lfs track and
git lfs ls-files; remove only rules for paths Gat should own.I ran git lfs migrate export
I ran git lfs migrate export
That command can rewrite history and turn LFS content into ordinary Git
blobs. It is not required here. If the rewrite was unintended, use your
original branch or backup before starting this migration.
I want to abandon the migration
I want to abandon the migration
If the branch is unmerged, preserve needed local work and return to the
original branch. Earlier commits still use LFS. Keep its client and storage
available to restore those revisions.
Storage troubleshooting
Credentials, endpoints, and connection failures.
Missing files or conflicts
Restore files, preserve edits, or repair cached objects.

