2025-03-14 21:59:59 -06:00
|
|
|
# dvc checkout
|
|
|
|
|
|
|
|
|
|
> Checkout data files and directories from cache.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://doc.dvc.org/command-reference/checkout>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|