mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
560 B
Plaintext
26 lines
560 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# dvc add
|
|
|
|
> Add changed files to the index.
|
|
> More information: <https://doc.dvc.org/command-reference/add>.
|
|
|
|
- Add a single target file to the index:
|
|
|
|
`dvc add {{path/to/file}}`
|
|
|
|
- Add a target directory to the index:
|
|
|
|
`dvc add {{path/to/directory}}`
|
|
|
|
- Recursively add all the files in a given target directory:
|
|
|
|
`dvc add --recursive {{path/to/directory}}`
|
|
|
|
- Add a target file with a custom `.dvc` filename:
|
|
|
|
`dvc add --file {{custom_name.dvc}} {{path/to/file}}`
|