|
Procedurally, version control is easy with DataLad!
datalad create creates an empty dataset.datalad save records the dataset or file state to the history. datalad download-url obtains web content and records its origin. datalad status reports the current state of the dataset.
$ datalad install --dataset . \
--source https://github.com/datalad-datasets/longnow-podcasts.git \
recordings/longnow
datalad get.
commit 8fdf62acd0bf1e99ebcb6c466edc994a5f4013ba
Author: DataLad Demo demo@datalad.org
Date: Sat Oct 26 15:54:44 2019 +0200
[DATALAD] Recorded changes
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..1b59b8c
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,4 @@
+[submodule "recordings/longnow"]
+ path = recordings/longnow
+ url = https://github.com/datalad-datasets/longnow-podcasts.git
+ datalad-id = b3ca2718-8901-11e8-99aa-a0369f7c647e
diff --git a/recordings/longnow b/recordings/longnow
new file mode 160000
index 0000000..dcc34fb
--- /dev/null
+++ b/recordings/longnow
@@ -0,0 +1 @@
+Subproject commit dcc34fbe669b06ced84ced381ba0db21cf5e665f
datalad install installs a dataset.datalad get downloads large file content on demand.datalad status can report on total and retrieved repository size--annex and --annex all options.text2git or yoda configuration!
$ cat << EOT > notes.txt
One can create a new dataset with 'datalad create [--description] PATH'.
The dataset is created empty
EOT
<< characters redirect the stream into standard input for the cat command> character redirects the standard output of cat and writes it into a new file notes.txtWhy is it used?
text2git
and yoda configure the dataset to store files of certain
types or in certain locations to be stored in Git