Skip to content

Adding Data

Terminal window
gda add bids/sub-01/meg/run-01.fif
gda add sub-02/beh/data.csv

GDA walks directories recursively:

Terminal window
gda add sub-01/
gda add bids/

Skips symlinks and directories automatically.

Terminal window
gda add .

Adds every file in the repository. Excludes .gda/ automatically.

When you add a file, GDA:

  1. Computes its SHA256 hash while writing to the object store (single pass)
  2. Stores the object in .gda/objects/XX/YYY... (read-only, 0444 permissions)
  3. Replaces the original with a relative symlink to the object
  4. Records the path→hash mapping in the index

Identical content is stored once. If two files have the same hash, they share the same object in the store.