datalad_create.sh 359 B

1234567
  1. #!/bin/bash
  2. # save each ID folder individually to counteract an error regarding length of a git command
  3. # it may be preferable to create individual subdatasets in the future
  4. # see https://neurostars.org/t/dividing-existing-datalad-dataset-into-subdatasets/7067/6
  5. for dir in ./../sub-*; do cp .gitignore $dir; datalad -C $dir create --force -c text2git; done