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

dvc checkout

  • Checkout data files and directories from cache.
    More information: <https://dvc.org/doc/command-reference/checkout>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy