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