mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:22:09 +02:00
DVC: add pages for sub commands commit, config, dag
This commit is contained in:
parent
51190d4610
commit
e94e07d26d
4 changed files with 71 additions and 2 deletions
16
pages/common/dvc-commit.md
Normal file
16
pages/common/dvc-commit.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# dvc commit
|
||||||
|
|
||||||
|
> Record changes to DVC-tracked files in the project.
|
||||||
|
> More information: <https://dvc.org/doc/command-reference/commit>.
|
||||||
|
|
||||||
|
- Commit latest version, for all DVC-tracked files and directories:
|
||||||
|
|
||||||
|
`dvc commit`
|
||||||
|
|
||||||
|
- Commit latest version, for a given DVC-tracked target:
|
||||||
|
|
||||||
|
`dvc commit {{target}}`
|
||||||
|
|
||||||
|
- Recursively commit all DVC-tracked files in a directory:
|
||||||
|
|
||||||
|
`dvc commit --recursive {{path/to/directory}}`
|
33
pages/common/dvc-config.md
Normal file
33
pages/common/dvc-config.md
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# dvc config
|
||||||
|
|
||||||
|
> Low level command to manage custom configuration options for dvc repositories.
|
||||||
|
> These configurations can be project/local/global/system level.
|
||||||
|
> More information: <https://dvc.org/doc/command-reference/config>.
|
||||||
|
|
||||||
|
- Get default remote name:
|
||||||
|
|
||||||
|
`dvc config core.remote`
|
||||||
|
|
||||||
|
- Set project default remote:
|
||||||
|
|
||||||
|
`dvc config core.remote {{remote_name}}`
|
||||||
|
|
||||||
|
- Unset project default remote:
|
||||||
|
|
||||||
|
`dvc config --unset core.remote`
|
||||||
|
|
||||||
|
- Get project config value for a key:
|
||||||
|
|
||||||
|
`dvc config key`
|
||||||
|
|
||||||
|
- Set project level config value for a key:
|
||||||
|
|
||||||
|
`dvc config key value`
|
||||||
|
|
||||||
|
- Unset project level config value for a key:
|
||||||
|
|
||||||
|
`dvc config --unset key`
|
||||||
|
|
||||||
|
- Set local/global/system level config:
|
||||||
|
|
||||||
|
`dvc config --local/global/system key value`
|
20
pages/common/dvc-dag.md
Normal file
20
pages/common/dvc-dag.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# dvc dag
|
||||||
|
|
||||||
|
> Visualize the pipeline(s) in dvc.yaml
|
||||||
|
> More information: <https://dvc.org/doc/command-reference/dag>.
|
||||||
|
|
||||||
|
- Visualize entire pipeline:
|
||||||
|
|
||||||
|
`dvc dag`
|
||||||
|
|
||||||
|
- Visualize pipeline stages up to a target stage:
|
||||||
|
|
||||||
|
`dvc dag {{target}}`
|
||||||
|
|
||||||
|
- Export pipeline in dot format:
|
||||||
|
|
||||||
|
`dvc dag --dot > pipeline.dot`
|
||||||
|
|
||||||
|
- Export pipeline as SVG:
|
||||||
|
|
||||||
|
`dvc dag --dot | dot -Tsvg -o pipeline.svg`
|
|
@ -15,6 +15,6 @@
|
||||||
|
|
||||||
`dvc {{command}} --help`
|
`dvc {{command}} --help`
|
||||||
|
|
||||||
- Execute Git command:
|
- Execute DVC command:
|
||||||
|
|
||||||
`git {{command}}`
|
`dvc {{command}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue