2020-07-22 20:57:28 +05:30
|
|
|
# dvc add
|
|
|
|
|
2020-08-19 19:35:52 +05:30
|
|
|
> Add changed files to the index.
|
2020-07-22 20:57:28 +05:30
|
|
|
> More information: <https://dvc.org/doc/command-reference/add>.
|
|
|
|
|
|
|
|
- Add a single target file to the index:
|
|
|
|
|
|
|
|
`dvc add {{path/to/file}}`
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Add a target directory to the index:
|
2020-07-22 20:57:28 +05:30
|
|
|
|
|
|
|
`dvc add {{path/to/directory}}`
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Recursively add all the files in a given target directory:
|
2020-07-22 20:57:28 +05:30
|
|
|
|
|
|
|
`dvc add --recursive {{path/to/directory}}`
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Add a target file with a custom `.dvc` filename:
|
2020-07-22 20:57:28 +05:30
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
`dvc add --file {{custom_name.dvc}} {{path/to/file}}`
|