1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 17:15:32 +02:00

DVC: add page including sub-commands checkout, init, add

This commit is contained in:
Puneetha Pai 2020-07-22 20:57:28 +05:30 committed by Starbeamrainbowlabs
parent beb5f2930a
commit 51190d4610
4 changed files with 72 additions and 0 deletions

20
pages/common/dvc-add.md Normal file
View 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}}`

View file

@ -0,0 +1,16 @@
# dvc checkout
> Update data files and directories in the workspace based on current DVC-files.
> More information: <https://dvc.org/doc/command-reference/checkout>.
- Checkout to latest version, for all target files and directories:
`dvc checkout`
- Checkout to latest version, for a given target:
`dvc checkout {{target}}`
- Checkout specific version of target from different Git commit/tag/branch:
`git checkout {{commit_hash/tag/branch}} {{target}} && dvc checkout {{target}}`

16
pages/common/dvc-init.md Normal file
View file

@ -0,0 +1,16 @@
# dvc init
> Initializes a new local DVC repository.
> More information: <https://dvc.org/doc/command-reference/init>.
- Initialize a new local repository:
`dvc init`
- Initialize DVC without Git:
`dvc init --no-scm`
- Initializing DVC in a subdirectory:
`cd {{path/to/subdir}} && dvc init --sudir`

20
pages/common/dvc.md Normal file
View file

@ -0,0 +1,20 @@
# dvc
> Data Version Control i.e git for data
> More information: <https://dvc.org/>.
- Check the DVC version:
`dvc --version`
- Call general help:
`dvc --help`
- Call help on a command:
`dvc {{command}} --help`
- Execute Git command:
`git {{command}}`