2020-07-23 13:34:38 +05:30
|
|
|
# dvc diff
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
> Show changes in DVC tracked file and directories.
|
2020-07-23 13:34:38 +05:30
|
|
|
> More information: <https://dvc.org/doc/command-reference/diff>.
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Compare DVC tracked files from different Git commits, tags, and branches w.r.t the current workspace:
|
2020-07-23 13:34:38 +05:30
|
|
|
|
|
|
|
`dvc diff {{commit_hash/tag/branch}}`
|
|
|
|
|
|
|
|
- Compare DVC tracked file in Git b_rev w.r.t a_rev:
|
|
|
|
|
|
|
|
`dvc diff b_rev a_rev`
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Compare DVC tracked files, along with their latest hash:
|
2020-07-23 13:34:38 +05:30
|
|
|
|
|
|
|
`dvc diff --show-hash {{commit}}`
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Compare DVC tracked files, displaying the output as JSON:
|
2020-07-23 13:34:38 +05:30
|
|
|
|
|
|
|
`dvc diff --show-json --show-hash {{commit}}`
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Compare DVC tracked files, displaying the output as Markdown:
|
2020-07-23 13:34:38 +05:30
|
|
|
|
|
|
|
`dvc diff --show-md --show-hash {{commit}}`
|