mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
21 lines
444 B
Markdown
21 lines
444 B
Markdown
![]() |
# 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}}`
|
||
|
|
||
|
- Add target file with custom .dvc file name
|
||
|
|
||
|
`dvc add --file custom_name.dvc {{path/to/file}}`
|