datalad rev-save [-h] [-m MESSAGE] [-d DATASET] [-t ID] [-r] [--recursion-limit LEVELS] [-u] [-F MESSAGE_FILE] [--to-git] [PATH [PATH ...]]
Save the current state of a dataset
Saving the state of a dataset records changes that have been made to it. This change record is annotated with a user-provided description. Optionally, an additional tag, such as a version, can be assigned to the saved state. Such tag enables straightforward retrieval of past versions at a later point in time.
Save any content underneath the current directory, without altering any potential subdataset (use –recursive for that):% datalad rev-save .
Save any modification of known dataset content, but leave untracked files (e.g. temporary files) untouched:% dataset rev-save -u -d <path_to_dataset>
Tag the most recent saved state of a dataset:% dataset rev-save -d <path_to_dataset> --version-tag bestyet
- For performance reasons, any Git repository without an initial commit located inside a Dataset is ignored, and content underneath it will be saved to the respective superdataset. DataLad datasets always have an initial commit, hence are not affected by this behavior.
path/name of the dataset component to save. If given, only changes made to those components are recorded in the new state. Constraints: value must be a string [Default: None]
-h, –help, –help-np¶
show this help message. –help-np forcefully disables the use of a pager for displaying the help message
-m MESSAGE, –message MESSAGE¶
a description of the state or the changes made to a dataset. Constraints: value must be a string [Default: None]
-d DATASET, –dataset DATASET¶
“specify the dataset to save. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path) [Default: None]
-t ID, –version-tag ID¶
an additional marker for that state. Every dataset that is touched will receive the tag. Constraints: value must be a string [Default: None]
if set, recurse into potential subdataset. [Default: False]
limit recursion into subdataset to the given number of levels. Constraints: value must be convertible to type ‘int’ [Default: None]
if given, only saves previously tracked paths. [Default: False]
-F MESSAGE_FILE, –message-file MESSAGE_FILE¶
take the commit message from this file. This flag is mutually exclusive with -m. Constraints: value must be a string [Default: None]
flag whether to add data directly to Git, instead of tracking data identity only. Usually this is not desired, as it inflates dataset sizes and impacts flexibility of data transport. If not specified - it will be up to git-annex to decide, possibly on .gitattributes options. Use this flag with a simultaneous selection of paths to save. In general, it is better to pre-configure a dataset to track particular paths, file types, or file sizes with either Git or git- annex. See https://git-annex.branchable.com/tips/largefiles/. [Default: None]