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}}`
|
|
|
|
|
2020-08-10 07:28:16 +01:00
|
|
|
- Compare the changes in DVC tracked files from 1 git commit to another:
|
2020-07-23 09:04:38 +01:00
|
|
|
|
2020-08-10 07:28:16 +01:00
|
|
|
`dvc diff {{revision_b}} {{revision_a}}`
|
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}}`
|