diff --git a/pages/common/dvc-add.md b/pages/common/dvc-add.md new file mode 100644 index 0000000000..3062d5271b --- /dev/null +++ b/pages/common/dvc-add.md @@ -0,0 +1,20 @@ +# dvc add + +> Adds changed files to the index. +> More information: . + +- Add a single target file to the index: + +`dvc add {{path/to/file}}` + +- Add target directory to the index: + +`dvc add {{path/to/directory}}` + +- Recursively add all files in target directory: + +`dvc add --recursive {{path/to/directory}}` + +- Add target file with custom .dvc file name + +`dvc add --file custom_name.dvc {{path/to/file}}` diff --git a/pages/common/dvc-checkout.md b/pages/common/dvc-checkout.md new file mode 100644 index 0000000000..13b53f8ffb --- /dev/null +++ b/pages/common/dvc-checkout.md @@ -0,0 +1,16 @@ +# dvc checkout + +> Update data files and directories in the workspace based on current DVC-files. +> More information: . + +- Checkout to latest version, for all target files and directories: + +`dvc checkout` + +- Checkout to latest version, for a given target: + +`dvc checkout {{target}}` + +- Checkout specific version of target from different Git commit/tag/branch: + +`git checkout {{commit_hash/tag/branch}} {{target}} && dvc checkout {{target}}` diff --git a/pages/common/dvc-init.md b/pages/common/dvc-init.md new file mode 100644 index 0000000000..ef6f470b97 --- /dev/null +++ b/pages/common/dvc-init.md @@ -0,0 +1,16 @@ +# dvc init + +> Initializes a new local DVC repository. +> More information: . + +- Initialize a new local repository: + +`dvc init` + +- Initialize DVC without Git: + +`dvc init --no-scm` + +- Initializing DVC in a subdirectory: + +`cd {{path/to/subdir}} && dvc init --sudir` diff --git a/pages/common/dvc.md b/pages/common/dvc.md new file mode 100644 index 0000000000..46f5f996ce --- /dev/null +++ b/pages/common/dvc.md @@ -0,0 +1,20 @@ +# dvc + +> Data Version Control i.e git for data +> More information: . + +- Check the DVC version: + +`dvc --version` + +- Call general help: + +`dvc --help` + +- Call help on a command: + +`dvc {{command}} --help` + +- Execute Git command: + +`git {{command}}`