HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dvc checkout — Checkout data files and directories from cache. More information: <https://doc.dvc.org/command-refer

Submitted by: @import:tldr-pages··
0
Viewed 0 times
checkoutcommanddvc checkoutfilesanddirectoriesclidata

Problem

How to use the dvc checkout command: Checkout data files and directories from cache. More information: <https://doc.dvc.org/command-reference/checkout>.

Solution

dvc checkout — Checkout data files and directories from cache. More information: <https://doc.dvc.org/command-reference/checkout>.

Checkout the latest version of all target files and directories:
dvc checkout


Checkout the latest version of a specified target:
dvc checkout {{target}}


Checkout a specific version of a target from a different Git commit/tag/branch:
git checkout {{commit_hash|tag|branch}} {{target}} && dvc checkout {{target}}

Code Snippets

Checkout the latest version of all target files and directories

dvc checkout

Checkout the latest version of a specified target

dvc checkout {{target}}

Checkout a specific version of a target from a different Git commit/tag/branch

git checkout {{commit_hash|tag|branch}} {{target}} && dvc checkout {{target}}

Context

tldr-pages: common/dvc checkout

Revisions (0)

No revisions yet.