DVC: add page including sub-commands checkout, init, add
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
beb5f2930a
commit
51190d4610
20
pages/common/dvc-add.md
Normal file
20
pages/common/dvc-add.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# 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}}`
|
Reference in New Issue
Block a user