Skip to content

Unlock & Lock

By default, GDA tracks files as read-only symlinks to content-stored blobs. Some data processing pipelines need write access to files.

Materializes a symlink into a writable copy:

Terminal window
gda unlock sub-01/meg/run.fif

After unlock, you can edit the file normally.

Re-hashes the unlocked file, stores a new object if changed, and replaces it with a symlink:

Terminal window
gda lock sub-01/meg/run.fif

If the content changed, GDA creates a new object (new hash). The old object remains in the store for previous snapshots.

gda status shows unlocked files:

unlocked 496.0 KB sub-01/meg/run.fif
modified 512.0 KB sub-02/beh/data.csv
  • unlocked = writable copy, content matches stored hash
  • modified = writable copy, content differs from stored hash
Terminal window
gda lock $(gda status | grep unlocked | awk '{print $3}')