mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 02:00:57 +00:00
Update cheatsheets
This commit is contained in:
25
dvc-add
Normal file
25
dvc-add
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dvc add
|
||||
|
||||
> Add 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 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}}`
|
||||
Reference in New Issue
Block a user