2020-07-23 09:04:38 +01:00
|
|
|
# dvc diff
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
> Show changes in DVC tracked file and directories.
|
2020-07-23 09:04:38 +01:00
|
|
|
> More information: <https://dvc.org/doc/command-reference/diff>.
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Compare DVC tracked files from different Git commits, tags, and branches w.r.t the current workspace:
|
2020-07-23 09:04:38 +01:00
|
|
|
|
|
|
|
`dvc diff {{commit_hash/tag/branch}}`
|
|
|
|
|
2021-01-07 15:40:44 +00:00
|
|
|
- Compare the changes in DVC tracked files from 1 Git commit to another:
|
2020-07-23 09:04:38 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`dvc diff {{revision1}} {{revision2}}`
|
2020-07-23 09:04:38 +01:00
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Compare DVC tracked files, along with their latest hash:
|
2020-07-23 09:04:38 +01:00
|
|
|
|
|
|
|
`dvc diff --show-hash {{commit}}`
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Compare DVC tracked files, displaying the output as JSON:
|
2020-07-23 09:04:38 +01:00
|
|
|
|
|
|
|
`dvc diff --show-json --show-hash {{commit}}`
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Compare DVC tracked files, displaying the output as Markdown:
|
2020-07-23 09:04:38 +01:00
|
|
|
|
|
|
|
`dvc diff --show-md --show-hash {{commit}}`
|