2020-07-22 16:27:28 +01:00
|
|
|
# dvc checkout
|
|
|
|
|
2020-07-31 16:32:51 +01:00
|
|
|
> Checkout data files and directories from cache.
|
2020-07-22 16:27:28 +01:00
|
|
|
> More information: <https://dvc.org/doc/command-reference/checkout>.
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Checkout the latest version of all target files and directories:
|
2020-07-22 16:27:28 +01:00
|
|
|
|
|
|
|
`dvc checkout`
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Checkout to latest version of a specified target:
|
2020-07-22 16:27:28 +01:00
|
|
|
|
|
|
|
`dvc checkout {{target}}`
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Checkout a specific version of a target from a different Git commit/tag/branch:
|
2020-07-22 16:27:28 +01:00
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
`git checkout {{commit_hash|tag|branch}} {{target}} && dvc checkout {{target}}`
|