2020-07-22 20:57:28 +05:30
|
|
|
# dvc checkout
|
|
|
|
|
2020-07-31 21:02:51 +05:30
|
|
|
> Checkout data files and directories from cache.
|
2020-07-22 20:57:28 +05:30
|
|
|
> More information: <https://dvc.org/doc/command-reference/checkout>.
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Checkout the latest version of all target files and directories:
|
2020-07-22 20:57:28 +05:30
|
|
|
|
|
|
|
`dvc checkout`
|
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
- Checkout the latest version of a specified target:
|
2020-07-22 20:57:28 +05:30
|
|
|
|
|
|
|
`dvc checkout {{target}}`
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Checkout a specific version of a target from a different Git commit/tag/branch:
|
2020-07-22 20:57:28 +05:30
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
`git checkout {{commit_hash|tag|branch}} {{target}} && dvc checkout {{target}}`
|