2025-03-14 21:59:59 -06:00
|
|
|
# dvc diff
|
|
|
|
|
|
|
|
|
|
> Show changes in DVC tracked file and directories.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://doc.dvc.org/command-reference/diff>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Compare DVC tracked files from different Git commits, tags, and branches w.r.t the current workspace:
|
|
|
|
|
|
|
|
|
|
`dvc diff {{commit_hash/tag/branch}}`
|
|
|
|
|
|
|
|
|
|
- Compare the changes in DVC tracked files from 1 Git commit to another:
|
|
|
|
|
|
|
|
|
|
`dvc diff {{revision1}} {{revision2}}`
|
|
|
|
|
|
|
|
|
|
- Compare DVC tracked files, along with their latest hash:
|
|
|
|
|
|
|
|
|
|
`dvc diff --show-hash {{commit}}`
|
|
|
|
|
|
|
|
|
|
- Compare DVC tracked files, displaying the output as JSON:
|
|
|
|
|
|
|
|
|
|
`dvc diff --show-json --show-hash {{commit}}`
|
|
|
|
|
|
|
|
|
|
- Compare DVC tracked files, displaying the output as Markdown:
|
|
|
|
|
|
|
|
|
|
`dvc diff --show-md --show-hash {{commit}}`
|