2020-07-22 16:27:28 +01:00
|
|
|
# dvc add
|
|
|
|
|
|
|
|
> Adds changed files to the index.
|
|
|
|
> More information: <https://dvc.org/doc/command-reference/add>.
|
|
|
|
|
|
|
|
- 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}}`
|
|
|
|
|
2020-07-26 16:51:20 +01:00
|
|
|
- Add target file with custom .dvc file name:
|
2020-07-22 16:27:28 +01:00
|
|
|
|
|
|
|
`dvc add --file custom_name.dvc {{path/to/file}}`
|